mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
add grpc to btcpay
This commit is contained in:
parent
114479321e
commit
8ddb6d4b6f
@ -9,6 +9,7 @@ public static class BTCPayAppExtensions
|
|||||||
{
|
{
|
||||||
public static IServiceCollection AddBTCPayApp(this IServiceCollection serviceCollection)
|
public static IServiceCollection AddBTCPayApp(this IServiceCollection serviceCollection)
|
||||||
{
|
{
|
||||||
|
serviceCollection.AddGrpc();
|
||||||
serviceCollection.AddSingleton<BTCPayAppState>();
|
serviceCollection.AddSingleton<BTCPayAppState>();
|
||||||
serviceCollection.AddSingleton<ILightningConnectionStringHandler, BTCPayAppLightningConnectionStringHandler>();
|
serviceCollection.AddSingleton<ILightningConnectionStringHandler, BTCPayAppLightningConnectionStringHandler>();
|
||||||
serviceCollection.AddHostedService(serviceProvider => serviceProvider.GetRequiredService<BTCPayAppState>());
|
serviceCollection.AddHostedService(serviceProvider => serviceProvider.GetRequiredService<BTCPayAppState>());
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
<PackageReference Include="TwentyTwenty.Storage.Local" Version="2.12.1" />
|
<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.Razor.RuntimeCompilation" Version="8.0.6" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.7" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.7" />
|
||||||
|
<PackageReference Include="Grpc.AspNetCore" Version="2.65.0"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user