Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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);
 }