Beispiel #1
0
 public StartupManager(
     [NotNull] AppSettings appSettings,
     [NotNull] IPaymentRequestExpirationHandler paymentRequestExpirationHandler,
     [NotNull] IWalletEventsPublisher walletEventsPublisher,
     [NotNull] IPaymentRequestPublisher paymentRequestPublisher,
     [NotNull] ITransactionPublisher transactionPublisher,
     [NotNull] ILogFactory logFactory)
 {
     _appSettings = appSettings ?? throw new ArgumentNullException(nameof(appSettings));
     _paymentRequestExpirationHandler = paymentRequestExpirationHandler ??
                                        throw new ArgumentNullException(nameof(paymentRequestExpirationHandler));
     _walletEventsPublisher   = walletEventsPublisher ?? throw new ArgumentNullException(nameof(walletEventsPublisher));
     _paymentRequestPublisher = paymentRequestPublisher ?? throw new ArgumentNullException(nameof(paymentRequestPublisher));
     _transactionPublisher    = transactionPublisher ?? throw new ArgumentNullException(nameof(transactionPublisher));
     _log = logFactory.CreateLog(this);
 }
Beispiel #2
0
 public WalletManager(
     IVirtualWalletService virtualWalletService,
     IList <BlockchainWalletAllocationPolicy> walletAllocationSettings,
     IBcnWalletUsageService bcnWalletUsageService,
     IWalletEventsPublisher walletEventsPublisher,
     IBlockchainClientProvider blockchainClientProvider,
     ITransactionsService transactionsService,
     ILog log)
 {
     _virtualWalletService     = virtualWalletService;
     _walletAllocationSettings = walletAllocationSettings;
     _bcnWalletUsageService    = bcnWalletUsageService;
     _walletEventsPublisher    = walletEventsPublisher;
     _blockchainClientProvider = blockchainClientProvider;
     _transactionsService      = transactionsService;
     _log = log;
 }
Beispiel #3
0
 public WalletManager(
     [NotNull] IVirtualWalletService virtualWalletService,
     [NotNull] IList <BlockchainWalletAllocationPolicy> walletAllocationSettings,
     [NotNull] IBcnWalletUsageService bcnWalletUsageService,
     [NotNull] IWalletEventsPublisher walletEventsPublisher,
     [NotNull] IBlockchainClientProvider blockchainClientProvider,
     [NotNull] ITransactionsService transactionsService,
     [NotNull] IAssetSettingsService assetSettingsService,
     [NotNull] ILogFactory logFactory)
 {
     _virtualWalletService     = virtualWalletService ?? throw new ArgumentNullException(nameof(virtualWalletService));
     _walletAllocationSettings = walletAllocationSettings ?? throw new ArgumentNullException(nameof(walletAllocationSettings));
     _bcnWalletUsageService    = bcnWalletUsageService ?? throw new ArgumentNullException(nameof(bcnWalletUsageService));
     _walletEventsPublisher    = walletEventsPublisher ?? throw new ArgumentNullException(nameof(walletEventsPublisher));
     _blockchainClientProvider = blockchainClientProvider ?? throw new ArgumentNullException(nameof(blockchainClientProvider));
     _transactionsService      = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _assetSettingsService     = assetSettingsService ?? throw new ArgumentNullException(nameof(assetSettingsService));
     _log = logFactory.CreateLog(this);
 }