mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
18 lines
635 B
C#
18 lines
635 B
C#
using BTCPayServer.HostedServices;
|
|
using BTCPayServer.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace BTCPayServer.Payments.PayJoin
|
|
{
|
|
public static class PayJoinExtensions
|
|
{
|
|
public static void AddPayJoinServices(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<DelayedTransactionBroadcaster>();
|
|
services.AddSingleton<IHostedService, HostedServices.DelayedTransactionBroadcasterHostedService>();
|
|
services.AddSingleton<PayJoinRepository>();
|
|
services.AddSingleton<PayjoinClient>();
|
|
}
|
|
}
|
|
}
|