示例#1
0
 public StartCashoutCommandsHandler(
     ILogFactory logFactory,
     IBlockchainConfigurationsProvider blockchainConfigurationProvider,
     IAssetsServiceWithCache assetsService,
     IHttpClientFactory httpClientFactory
     )
 {
     _log = logFactory.CreateLog(this);
     _blockchainConfigurationProvider = blockchainConfigurationProvider ?? throw new ArgumentNullException(nameof(blockchainConfigurationProvider));
     _assetsService  = assetsService ?? throw new ArgumentNullException(nameof(assetsService));
     _opsGenieClient = httpClientFactory.CreateClient(HttpClientNames.Opsgenie);
 }
示例#2
0
 public AcceptCashoutCommandsHandler(
     IChaosKitty chaosKitty,
     ICashoutsBatchRepository cashoutsBatchRepository,
     IClosedBatchedCashoutRepository closedBatchedCashoutRepository,
     IActiveCashoutsBatchIdRepository activeCashoutsBatchIdRepository,
     IBlockchainConfigurationsProvider blockchainConfigurationProvider,
     IBlockchainWalletsClient walletsClient,
     CqrsSettings cqrsSettings,
     bool disableDirectCrossClientCashouts)
 {
     _chaosKitty = chaosKitty;
     _cashoutsBatchRepository         = cashoutsBatchRepository;
     _closedBatchedCashoutRepository  = closedBatchedCashoutRepository;
     _activeCashoutsBatchIdRepository = activeCashoutsBatchIdRepository;
     _blockchainConfigurationProvider = blockchainConfigurationProvider ?? throw new ArgumentNullException(nameof(blockchainConfigurationProvider));
     _walletsClient = walletsClient ?? throw new ArgumentNullException(nameof(walletsClient));
     _cqrsSettings  = cqrsSettings;
     _disableDirectCrossClientCashouts = disableDirectCrossClientCashouts;
 }