public WalletsController(
     IBcnWalletUsageService bcnWalletUsageService,
     IWalletManager walletManager,
     IBlockchainAddressValidator blockchainAddressValidator)
 {
     _bcnWalletUsageService      = bcnWalletUsageService;
     _walletManager              = walletManager;
     _blockchainAddressValidator = blockchainAddressValidator;
 }
Example #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;
 }
Example #3
0
 public TransactionsManager(
     [NotNull] ITransactionsService transactionsService,
     [NotNull] IPaymentRequestService paymentRequestService,
     [NotNull] ILogFactory logFactory,
     [NotNull] IWalletHistoryService walletHistoryService,
     int transactionConfirmationCount,
     [NotNull] IConfirmationsService confirmationsService,
     [NotNull] IBcnWalletUsageService bcnWalletUsageService)
 {
     _transactionsService          = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _paymentRequestService        = paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _walletHistoryService         = walletHistoryService ?? throw new ArgumentNullException(nameof(walletHistoryService));
     _transactionConfirmationCount = transactionConfirmationCount;
     _confirmationsService         = confirmationsService ?? throw new ArgumentNullException(nameof(confirmationsService));
     _bcnWalletUsageService        = bcnWalletUsageService ?? throw new ArgumentNullException(nameof(bcnWalletUsageService));
     _log = logFactory.CreateLog(this);
 }
Example #4
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);
 }
 public VirtualAddressResolver(
     [NotNull] IBcnWalletUsageService bcnWalletUsageService)
 {
     _bcnWalletUsageService =
         bcnWalletUsageService ?? throw new ArgumentNullException(nameof(bcnWalletUsageService));
 }
Example #6
0
 public VirtualAddressResolver(IBcnWalletUsageService bcnWalletUsageService)
 {
     _bcnWalletUsageService = bcnWalletUsageService;
 }