Exemple #1
0
    public LightningAutomatedPayoutProcessor(
        BTCPayNetworkJsonSerializerSettings btcPayNetworkJsonSerializerSettings,
        LightningClientFactoryService lightningClientFactoryService,
        IEnumerable <IPayoutHandler> payoutHandlers,
        UserService userService,
        ILoggerFactory logger, IOptions <LightningNetworkOptions> options,
        StoreRepository storeRepository, PayoutProcessorData payoutProcesserSettings,
        ApplicationDbContextFactory applicationDbContextFactory, BTCPayNetworkProvider btcPayNetworkProvider) :
        base(logger, storeRepository, payoutProcesserSettings, applicationDbContextFactory,
             btcPayNetworkProvider)
    {
        _btcPayNetworkJsonSerializerSettings = btcPayNetworkJsonSerializerSettings;
        _lightningClientFactoryService       = lightningClientFactoryService;
        _userService   = userService;
        _options       = options;
        _payoutHandler = (LightningLikePayoutHandler)payoutHandlers.FindPayoutHandler(PaymentMethodId);

        _network = _btcPayNetworkProvider.GetNetwork <BTCPayNetwork>(_PayoutProcesserSettings.GetPaymentMethodId().CryptoCode);
    }
Exemple #2
0
 public UILNURLController(InvoiceRepository invoiceRepository,
                          EventAggregator eventAggregator,
                          BTCPayNetworkProvider btcPayNetworkProvider,
                          LightningLikePaymentHandler lightningLikePaymentHandler,
                          StoreRepository storeRepository,
                          AppService appService,
                          UIInvoiceController invoiceController,
                          LinkGenerator linkGenerator,
                          LightningAddressService lightningAddressService,
                          LightningLikePayoutHandler lightningLikePayoutHandler,
                          PullPaymentHostedService pullPaymentHostedService)
 {
     _invoiceRepository           = invoiceRepository;
     _eventAggregator             = eventAggregator;
     _btcPayNetworkProvider       = btcPayNetworkProvider;
     _lightningLikePaymentHandler = lightningLikePaymentHandler;
     _storeRepository             = storeRepository;
     _appService                 = appService;
     _invoiceController          = invoiceController;
     _linkGenerator              = linkGenerator;
     _lightningAddressService    = lightningAddressService;
     _lightningLikePayoutHandler = lightningLikePayoutHandler;
     _pullPaymentHostedService   = pullPaymentHostedService;
 }