Esempio n. 1
0
 public InvoiceController(
     IServiceProvider serviceProvider,
     InvoiceRepository invoiceRepository,
     CurrencyNameTable currencyNameTable,
     UserManager <ApplicationUser> userManager,
     RateFetcher rateProvider,
     StoreRepository storeRepository,
     EventAggregator eventAggregator,
     ContentSecurityPolicies csp,
     BTCPayNetworkProvider networkProvider,
     PaymentMethodHandlerDictionary paymentMethodHandlerDictionary,
     ApplicationDbContextFactory dbContextFactory,
     PullPaymentHostedService paymentHostedService,
     InvoiceLogsService invoiceLogsService)
 {
     _ServiceProvider   = serviceProvider;
     _CurrencyNameTable = currencyNameTable ?? throw new ArgumentNullException(nameof(currencyNameTable));
     _StoreRepository   = storeRepository ?? throw new ArgumentNullException(nameof(storeRepository));
     _InvoiceRepository = invoiceRepository ?? throw new ArgumentNullException(nameof(invoiceRepository));
     _RateProvider      = rateProvider ?? throw new ArgumentNullException(nameof(rateProvider));
     _UserManager       = userManager;
     _EventAggregator   = eventAggregator;
     _NetworkProvider   = networkProvider;
     _paymentMethodHandlerDictionary = paymentMethodHandlerDictionary;
     _dbContextFactory     = dbContextFactory;
     _paymentHostedService = paymentHostedService;
     _invoiceLogsService   = invoiceLogsService;
     _CSP = csp;
 }
 public PayjoinReceiverContext(InvoiceRepository invoiceRepository, ExplorerClient explorerClient, PayJoinRepository payJoinRepository, InvoiceLogsService invoiceLogsService)
 {
     _invoiceRepository  = invoiceRepository;
     _explorerClient     = explorerClient;
     _payJoinRepository  = payJoinRepository;
     _invoiceLogsService = invoiceLogsService;
 }
Esempio n. 3
0
 public PayJoinEndpointController(BTCPayNetworkProvider btcPayNetworkProvider,
                                  InvoiceRepository invoiceRepository, ExplorerClientProvider explorerClientProvider,
                                  StoreRepository storeRepository, BTCPayWalletProvider btcPayWalletProvider,
                                  PayJoinRepository payJoinRepository,
                                  EventAggregator eventAggregator,
                                  NBXplorerDashboard dashboard,
                                  DelayedTransactionBroadcaster broadcaster,
                                  WalletRepository walletRepository,
                                  BTCPayServerEnvironment env,
                                  InvoiceLogsService invoiceLogsService)
 {
     _btcPayNetworkProvider  = btcPayNetworkProvider;
     _invoiceRepository      = invoiceRepository;
     _explorerClientProvider = explorerClientProvider;
     _storeRepository        = storeRepository;
     _btcPayWalletProvider   = btcPayWalletProvider;
     _payJoinRepository      = payJoinRepository;
     _eventAggregator        = eventAggregator;
     _dashboard        = dashboard;
     _broadcaster      = broadcaster;
     _walletRepository = walletRepository;
     _env = env;
     _invoiceLogsService = invoiceLogsService;
 }