public SmsController( ICqrsEngine cqrsEngine, ILog log) { _cqrsEngine = cqrsEngine; _log = log; }
public WalletService( ICqrsEngine cqrsEngine, IBlockchainWalletsRepository walletRepository, IBlockchainSignFacadeClient blockchainSignFacadeClient, IAddressParser addressParser, IFirstGenerationBlockchainWalletRepository firstGenerationBlockchainWalletRepository, IAssetsServiceWithCache assetsServiceWithCache, IBlockchainExtensionsService blockchainExtensionsService, IAddressService addressService, ILegacyWalletService legacyWalletService, ILogFactory logFactory) { _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); _walletRepository = walletRepository ?? throw new ArgumentNullException(nameof(walletRepository)); _blockchainSignFacadeClient = blockchainSignFacadeClient ?? throw new ArgumentNullException(nameof(blockchainSignFacadeClient)); _addressParser = addressParser ?? throw new ArgumentNullException(nameof(addressParser)); _firstGenerationBlockchainWalletRepository = firstGenerationBlockchainWalletRepository ?? throw new ArgumentNullException( nameof(firstGenerationBlockchainWalletRepository)); _assetsServiceWithCache = assetsServiceWithCache ?? throw new ArgumentNullException(nameof(assetsServiceWithCache)); _blockchainExtensionsService = blockchainExtensionsService ?? throw new ArgumentNullException(nameof(blockchainExtensionsService)); _addressService = addressService ?? throw new ArgumentNullException(nameof(addressService)); _legacyWalletService = legacyWalletService ?? throw new ArgumentNullException(nameof(legacyWalletService)); if (logFactory == null) { throw new ArgumentNullException(nameof(logFactory)); } _log = logFactory.CreateLog(this); }
public StartupManager( TriggerHost triggerHost, ICqrsEngine cqrsEngine) { _triggerHost = triggerHost; _cqrsEngine = cqrsEngine; }
public StartupManager( ILogFactory logFactory, ICqrsEngine cqrsEngine) { _log = logFactory.CreateLog(this); _cqrsEngine = cqrsEngine; }
public SiriusWalletsService( long brokerAccountId, IApiClient siriusApiClient, IClientDialogsClient clientDialogsClient, IAssetsService assetsService, IKycStatusService kycStatusService, IClientAccountClient clientAccountClient, IBalanceService balanceService, ICqrsEngine cqrsEngine, IOperationsClient operationsClient, TargetClientIdFeeSettings feeSettings, ValidationService validationService, IdempotencyService idempotencyService, ILogFactory logFactory) { _brokerAccountId = brokerAccountId; _siriusApiClient = siriusApiClient; _clientDialogsClient = clientDialogsClient; _assetsService = assetsService; _kycStatusService = kycStatusService; _clientAccountClient = clientAccountClient; _balanceService = balanceService; _cqrsEngine = cqrsEngine; _operationsClient = operationsClient; _feeSettings = feeSettings; _validationService = validationService; _idempotencyService = idempotencyService; _log = logFactory.CreateLog(this); }
public StartupManager( ICqrsEngine cqrsEngine, ILogFactory logFactory) { _cqrsEngine = cqrsEngine; _log = logFactory.CreateLog(this); }
public StartupManager( ILog log, ICandlesCacheInitalizationService cacheInitalizationService, ICandlesSubscriber candlesSubscriber, ISnapshotSerializer snapshotSerializer, ICandlesPersistenceQueueSnapshotRepository persistenceQueueSnapshotRepository, ICandlesPersistenceQueue persistenceQueue, ICandlesPersistenceManager persistenceManager, bool migrationEnabled, ICqrsEngine cqrsEngine) { if (log == null) { throw new ArgumentNullException(nameof(log)); } _log = log.CreateComponentScope(nameof(StartupManager)) ?? throw new InvalidOperationException("Couldn't create a component scope for logging."); _cacheInitalizationService = cacheInitalizationService ?? throw new ArgumentNullException(nameof(cacheInitalizationService)); _candlesSubscriber = candlesSubscriber ?? throw new ArgumentNullException(nameof(candlesSubscriber)); _snapshotSerializer = snapshotSerializer ?? throw new ArgumentNullException(nameof(snapshotSerializer)); _persistenceQueueSnapshotRepository = persistenceQueueSnapshotRepository ?? throw new ArgumentNullException(nameof(persistenceQueueSnapshotRepository)); _persistenceQueue = persistenceQueue ?? throw new ArgumentNullException(nameof(persistenceQueue)); _persistenceManager = persistenceManager ?? throw new ArgumentNullException(nameof(persistenceManager)); _migrationEnabled = migrationEnabled; _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); }
public OperationsController( IAssetsServiceWithCache assetsServiceWithCache, IBalancesClient balancesClient, IKycStatusService kycStatusService, IClientAccountClient clientAccountClient, FeeSettings feeSettings, BaseSettings baseSettings, IOperationsClient operationsClient, ICqrsEngine cqrsEngine, IRequestContext requestContext, IConfirmationCodesClient confirmationCodesClient, Google2FaService google2FaService) { _assetsServiceWithCache = assetsServiceWithCache; _balancesClient = balancesClient; _kycStatusService = kycStatusService; _clientAccountClient = clientAccountClient; _feeSettings = feeSettings; _baseSettings = baseSettings; _operationsClient = operationsClient; _cqrsEngine = cqrsEngine; _requestContext = requestContext; _confirmationCodesClient = confirmationCodesClient; _google2FaService = google2FaService; }
public DepositWalletsBalanceProcessingPeriodicalHandler( ILogFactory logFactory, TimeSpan period, int batchSize, string blockchainType, IBlockchainApiClientProvider blockchainApiClientProvider, ICqrsEngine cqrsEngine, IAssetsServiceWithCache assetsService, IEnrolledBalanceRepository enrolledBalanceRepository, IHotWalletsProvider hotWalletsProvider, ICashinRepository cashinRepository, IDepositWalletLockRepository depositWalletLockRepository, IChaosKitty chaosKitty) { _logFactory = logFactory; _batchSize = batchSize; _blockchainType = blockchainType; _blockchainApiClient = blockchainApiClientProvider.Get(blockchainType); _cqrsEngine = cqrsEngine; _assetsService = assetsService; _enrolledBalanceRepository = enrolledBalanceRepository; _hotWalletsProvider = hotWalletsProvider; _cashinRepository = cashinRepository; _depositWalletLockRepository = depositWalletLockRepository; _chaosKitty = chaosKitty; _timer = new TimerTrigger( $"{nameof(DepositWalletsBalanceProcessingPeriodicalHandler)} : {blockchainType}", period, _logFactory); _timer.Triggered += ProcessBalancesAsync; }
public AssetService( [NotNull] IAssetRepository assetRepository, [NotNull] ICqrsEngine cqrsEngine) { _assetRepository = assetRepository ?? throw new ArgumentNullException(nameof(assetRepository)); _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); }
public DistributionPlanController( ICqrsEngine cqrsEngine, IDistributionPlanService distributionPlanService) { _cqrsEngine = cqrsEngine; _distributionPlanService = distributionPlanService; }
public StartupManager(ILogFactory logFactory, ClaimGasStarterSettings starterSettings, ICqrsEngine cqrsEngine) { _starterSettings = starterSettings; _cqrsEngine = cqrsEngine; _log = logFactory.CreateLog(this); }
public Erc20ContracAssigner(IErc20DepositContractQueueServiceFactory poolFactory, [KeyFilter(Constants.DefaultKey)] IErc223DepositContractRepository contractRepository, ICqrsEngine cqrsEngine) { _cqrsEngine = cqrsEngine; _poolFactory = poolFactory; _contractRepository = contractRepository; }
public LinkExpiryChecker( IExpiryWatcher expiryWatcher, ICqrsEngine cqrsEngine, ILogFactory logFactory) : base(TimeSpan.FromSeconds(10), logFactory, nameof(LinkExpiryChecker)) { _expiryWatcher = expiryWatcher; _cqrsEngine = cqrsEngine; }
public StartupManager( ILogFactory logFactory, IEnumerable <IDepositWalletsBalanceProcessingPeriodicalHandler> depositWalletsBalanceProcessingHandlers, ICqrsEngine cqrsEngine) { _log = logFactory.CreateLog(this); _depositWalletsBalanceProcessingHandlers = depositWalletsBalanceProcessingHandlers ?? throw new ArgumentNullException(nameof(depositWalletsBalanceProcessingHandlers)); _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); }
public CqrsMessageSender( ICqrsEngine cqrsEngine, CqrsContextNamesSettings contextNames, ILog log) { _cqrsEngine = cqrsEngine; _contextNames = contextNames; _log = log; }
public AssetService( [NotNull] IAssetRepository assetRepository, [NotNull] IMyNoSqlWriterWrapper <AssetNoSql> myNoSqlWriter, [NotNull] ICqrsEngine cqrsEngine) { _assetRepository = assetRepository ?? throw new ArgumentNullException(nameof(assetRepository)); _myNoSqlWriter = myNoSqlWriter; _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); }
public StartupManager( ICqrsEngine cqrsEngine, string createBalanceSnapshotCron, string createDistributionPlanCron) { _cqrsEngine = cqrsEngine; _createBalanceSnapshotCron = createBalanceSnapshotCron; _createDistributionPlanCron = createDistributionPlanCron; }
public StartupManager( ICqrsEngine cqrsEngine, ITierUpgradeService tierUpgradeService, ILogFactory logFactory ) { _cqrsEngine = cqrsEngine; _tierUpgradeService = tierUpgradeService; _log = logFactory.CreateLog(this); }
public BalanceUpdateRabbitSubscriber( [NotNull] ICachedWalletsRepository cachedWalletsRepository, [NotNull] ILogFactory logFactory, [NotNull] RabbitMqSettings rabbitMqSettings, [NotNull] ICqrsEngine cqrsEngine) { _logFactory = logFactory; _rabbitMqSettings = rabbitMqSettings ?? throw new ArgumentNullException(nameof(rabbitMqSettings)); _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); }
public CallbackController( ISmsRepository smsRepository, ICqrsEngine cqrsEngine, ILog log ) { _smsRepository = smsRepository; _cqrsEngine = cqrsEngine; _log = log.CreateComponentScope(nameof(CallbackController)); }
public BlockchainRiskControlServiceImpl( IOperationValidationRepository validationRepository, ICqrsEngine cqrsEngine, ILogFactory logFactory ) { _log = logFactory.CreateLog(this); _validationRepository = validationRepository; _cqrsEngine = cqrsEngine; }
public StartupManager( ILogFactory logFactory, PrivateKeyService privateKeyService, ICqrsEngine cqrsEngine ) { _privateKeyService = privateKeyService; _cqrsEngine = cqrsEngine; _log = logFactory.CreateLog(this); }
public StartupManager( ICqrsEngine cqrsEngine, ExecutionQueueReader executionQueueReader, OrderEventQueueReader orderEventQueueReader ) { _cqrsEngine = cqrsEngine; _executionQueueReader = executionQueueReader; _orderEventQueueReader = orderEventQueueReader; }
public ApiKeyService( string jwtSecret, string jwtAud, IRepository <ApiKey> orderStateRepository, ICqrsEngine cqrsEngine) { _jwtSecret = jwtSecret; _jwtAud = jwtAud; _apiKeyRepository = orderStateRepository ?? throw new ArgumentNullException(nameof(orderStateRepository)); _cqrsEngine = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine)); }
public StartupManager( HistorySettings historySettings, ICqrsEngine cqrsEngine, ExecutionQueueReader executionQueueReader, ILogFactory logFactory) { _historySettings = historySettings; _cqrsEngine = cqrsEngine; _executionQueueReader = executionQueueReader; _log = logFactory.CreateLog(nameof(StartupManager)); }
public OperationsController( IAntiFraudCollector antiFraudCollector, ICashOperationsCollector cashOperationsCollector, ICashTransfersCollector cashTransfersCollector, ICqrsEngine cqrsEngine) { _antiFraudCollector = antiFraudCollector; _cashOperationsCollector = cashOperationsCollector; _cashTransfersCollector = cashTransfersCollector; _cqrsEngine = cqrsEngine; }
public StaffsController( IPayInvoiceClient payInvoiceClient, IPayMerchantClient payMerchantClient, ICqrsEngine cqrsEngine, IMapper mapper) { _payInvoiceClient = payInvoiceClient; _payMerchantClient = payMerchantClient; _cqrsEngine = cqrsEngine; _mapper = mapper; }
public WebhookController( IEncryptionService encryptionService, IRawLogRepository rawLogRepository, ICqrsEngine cqrsEngine, ILogFactory logFactory ) { _encryptionService = encryptionService; _rawLogRepository = rawLogRepository; _cqrsEngine = cqrsEngine; _log = logFactory.CreateLog(this); }
public SecondFactorAuthController( IConfirmationCodesClient confirmationCodesClient, IRequestContext requestContext, IClientSessionsClient clientSessionsClient, IPersonalDataService personalDataService, ICqrsEngine cqrsEngine) { _confirmationCodesClient = confirmationCodesClient; _requestContext = requestContext; _clientSessionsClient = clientSessionsClient; _personalDataService = personalDataService; _cqrsEngine = cqrsEngine; }