add grpc to btcpay

This commit is contained in:
Kukks 2024-08-05 10:22:56 +02:00
parent 114479321e
commit 8ddb6d4b6f
No known key found for this signature in database
GPG Key ID: 8E5530D9D1C93097
2 changed files with 2 additions and 0 deletions

View File

@ -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>());

View File

@ -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>