mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
add grpc to btcpay
This commit is contained in:
parent
114479321e
commit
8ddb6d4b6f
2 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ public static class BTCPayAppExtensions
|
|||
{
|
||||
public static IServiceCollection AddBTCPayApp(this IServiceCollection serviceCollection)
|
||||
{
|
||||
serviceCollection.AddGrpc();
|
||||
serviceCollection.AddSingleton<BTCPayAppState>();
|
||||
serviceCollection.AddSingleton<ILightningConnectionStringHandler, BTCPayAppLightningConnectionStringHandler>();
|
||||
serviceCollection.AddHostedService(serviceProvider => serviceProvider.GetRequiredService<BTCPayAppState>());
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
<PackageReference Include="TwentyTwenty.Storage.Local" Version="2.12.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.7" />
|
||||
<PackageReference Include="Grpc.AspNetCore" Version="2.65.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Add table
Reference in a new issue