public DelayedTransactionBroadcaster( BTCPayNetworkProvider networkProvider, ExplorerClientProvider explorerClientProvider, Data.ApplicationDbContextFactory dbContextFactory, Logs logs) { ArgumentNullException.ThrowIfNull(explorerClientProvider); _networkProvider = networkProvider; _explorerClientProvider = explorerClientProvider; _dbContextFactory = dbContextFactory; this.Logs = logs; }
public DelayedTransactionBroadcaster( BTCPayNetworkProvider networkProvider, ExplorerClientProvider explorerClientProvider, Data.ApplicationDbContextFactory dbContextFactory) { if (explorerClientProvider == null) { throw new ArgumentNullException(nameof(explorerClientProvider)); } _networkProvider = networkProvider; _explorerClientProvider = explorerClientProvider; _dbContextFactory = dbContextFactory; }
public BTCPayWalletProvider(ExplorerClientProvider client, IOptions <MemoryCacheOptions> memoryCacheOption, Data.ApplicationDbContextFactory dbContextFactory, BTCPayNetworkProvider networkProvider, Logs logs) { ArgumentNullException.ThrowIfNull(client); this.Logs = logs; _Client = client; _NetworkProvider = networkProvider; _Options = memoryCacheOption; foreach (var network in networkProvider.GetAll().OfType <BTCPayNetwork>()) { var explorerClient = _Client.GetExplorerClient(network.CryptoCode); if (explorerClient == null) { continue; } _Wallets.Add(network.CryptoCode.ToUpperInvariant(), new BTCPayWallet(explorerClient, new MemoryCache(_Options), network, dbContextFactory, Logs)); } }
public BTCPayWalletProvider(ExplorerClientProvider client, IOptions <MemoryCacheOptions> memoryCacheOption, Data.ApplicationDbContextFactory dbContextFactory, BTCPayNetworkProvider networkProvider) { if (client == null) { throw new ArgumentNullException(nameof(client)); } _Client = client; _NetworkProvider = networkProvider; _Options = memoryCacheOption; foreach (var network in networkProvider.GetAll().OfType <BTCPayNetwork>()) { var explorerClient = _Client.GetExplorerClient(network.bitcoinCode); if (explorerClient == null) { continue; } _Wallets.Add(network.bitcoinCode.ToUpperInvariant(), new BTCPayWallet(explorerClient, new MemoryCache(_Options), network, dbContextFactory)); } }