예제 #1
0
 public WalletLinkingStatusChangeRequestedHandler(
     IOperationRequestsProducer operationRequestsProducer,
     IDeduplicationLogRepository <WalletLinkingDeduplicationLogEntity> deduplicationLog,
     ITransactionScopeHandler transactionScopeHandler,
     ILogFactory logFactory)
 {
     _operationRequestsProducer = operationRequestsProducer;
     _deduplicationLog          = deduplicationLog;
     _transactionScopeHandler   = transactionScopeHandler;
     _log = logFactory.CreateLog(this);
 }
예제 #2
0
 public OperationsService(
     IOperationRequestsProducer operationRequestsProducer,
     IDeduplicationLogRepository <OperationDeduplicationLogEntity> deduplicationLog,
     ITransactionScopeHandler transactionScopeHandler,
     ILogFactory logFactory)
 {
     _operationRequestsProducer = operationRequestsProducer;
     _deduplicationLog          = deduplicationLog;
     _transactionScopeHandler   = transactionScopeHandler;
     _log = logFactory.CreateLog(this);
 }
예제 #3
0
 public OperationStatusUpdater(ILogFactory logFactory,
                               ITransactionScopeHandler transactionScopeHandler,
                               IOperationsRepository operationsRepository,
                               IQuorumOperationExecutorClient executorClient,
                               IOperationRequestsRepository operationRequestsRepository)
 {
     _transactionScopeHandler     = transactionScopeHandler;
     _operationsRepository        = operationsRepository;
     _executorClient              = executorClient;
     _operationRequestsRepository = operationRequestsRepository;
     _log = logFactory.CreateLog(this);
 }
예제 #4
0
 public WalletsService(
     ILogFactory logFactory,
     ITransactionScopeHandler transactionScopeHandler,
     IWalletOwnersRepository walletOwnersRepository,
     IQuorumTransactionSignerClient quorumTransactionSignerClient,
     IOperationRequestsProducer operationRequestsProducer)
 {
     _transactionScopeHandler       = transactionScopeHandler;
     _walletOwnersRepository        = walletOwnersRepository;
     _quorumTransactionSignerClient = quorumTransactionSignerClient;
     _operationRequestsProducer     = operationRequestsProducer;
     _log = logFactory.CreateLog(this);
 }
 public SeizeToInternalDetectedHandler(
     IOperationRequestsProducer operationRequestsProducer,
     IDeduplicationLogRepository <OperationDeduplicationLogEntity> deduplicationLogRepository,
     ITransactionScopeHandler transactionScopeHandler,
     string privateBlockchainGatewayContractAddress,
     ILogFactory logFactory)
 {
     _operationRequestsProducer  = operationRequestsProducer;
     _deduplicationLogRepository = deduplicationLogRepository;
     _transactionScopeHandler    = transactionScopeHandler;
     _privateBlockchainGatewayContractAddress = privateBlockchainGatewayContractAddress;
     _log = logFactory.CreateLog(this);
 }
 public BonusService(
     IDeduplicationLogRepository <BonusRewardDeduplicationLogEntity> deduplicationLog,
     ITransactionScopeHandler transactionScopeHandler,
     ILogFactory logFactory,
     IOperationRequestsProducer operationRequestsProducer,
     IWalletsService walletsService,
     string walletCreationMasterWalletAddress)
 {
     _deduplicationLog                  = deduplicationLog;
     _transactionScopeHandler           = transactionScopeHandler;
     _operationRequestsProducer         = operationRequestsProducer;
     _walletsService                    = walletsService;
     _walletCreationMasterWalletAddress = walletCreationMasterWalletAddress;
     _log = logFactory.CreateLog(this);
 }
예제 #7
0
 public TransferService(
     IWalletsService walletsService,
     ITransactionScopeHandler transactionScopeHandler,
     IBalanceService balanceService,
     IOperationRequestsProducer operationRequestsProducer,
     IDeduplicationLogRepository <TransferDeduplicationLogEntity> deduplicationLog,
     ILogFactory logFactory)
 {
     _walletsService            = walletsService;
     _transactionScopeHandler   = transactionScopeHandler;
     _balanceService            = balanceService;
     _operationRequestsProducer = operationRequestsProducer;
     _deduplicationLog          = deduplicationLog;
     _log = logFactory.CreateLog(this);
 }
예제 #8
0
 public OperationExecutionMiddleware(
     RequestDelegate next,
     ObjectPool <OperationContext> operationContextPool,
     QueryExecutor queryExecutor,
     SubscriptionExecutor subscriptionExecutor,
     IQueryPlanCache queryPlanCache,
     [SchemaService] ITransactionScopeHandler transactionScopeHandler)
 {
     _next = next ??
             throw new ArgumentNullException(nameof(next));
     _operationContextPool = operationContextPool ??
                             throw new ArgumentNullException(nameof(operationContextPool));
     _queryExecutor = queryExecutor ??
                      throw new ArgumentNullException(nameof(queryExecutor));
     _subscriptionExecutor = subscriptionExecutor ??
                             throw new ArgumentNullException(nameof(subscriptionExecutor));
     _queryPlanCache = queryPlanCache ??
                       throw new ArgumentNullException(nameof(queryPlanCache));
     _transactionScopeHandler = transactionScopeHandler ??
                                throw new ArgumentNullException(nameof(transactionScopeHandler));
 }
예제 #9
0
 public PaymentsStatusUpdater(
     IPaymentsRepository paymentsRepository,
     IPrivateBlockchainFacadeClient pbfClient,
     IWalletManagementClient walletManagementClient,
     IBlockchainEncodingService blockchainEncodingService,
     ITransactionScopeHandler transactionScopeHandler,
     IPaymentRequestBlockchainRepository paymentRequestBlockchainRepository,
     ISettingsService settingsService,
     IRabbitPublisher <PartnersPaymentStatusUpdatedEvent> statusUpdatePublisher,
     IEligibilityEngineClient eligibilityEngineClient,
     string tokenSymbol)
 {
     _paymentsRepository                 = paymentsRepository;
     _pbfClient                          = pbfClient;
     _walletManagementClient             = walletManagementClient;
     _blockchainEncodingService          = blockchainEncodingService;
     _transactionScopeHandler            = transactionScopeHandler;
     _paymentRequestBlockchainRepository = paymentRequestBlockchainRepository;
     _settingsService                    = settingsService;
     _statusUpdatePublisher              = statusUpdatePublisher;
     _eligibilityEngineClient            = eligibilityEngineClient;
     _tokenSymbol                        = tokenSymbol;
 }
 public OperationExecutionMiddleware(
     RequestDelegate next,
     IDiagnosticEvents diagnosticEvents,
     ObjectPool <OperationContext> operationContextPool,
     QueryExecutor queryExecutor,
     MutationExecutor mutationExecutor,
     SubscriptionExecutor subscriptionExecutor,
     [SchemaService] ITransactionScopeHandler transactionScopeHandler)
 {
     _next = next ??
             throw new ArgumentNullException(nameof(next));
     _diagnosticEvents = diagnosticEvents ??
                         throw new ArgumentNullException(nameof(diagnosticEvents));
     _operationContextPool = operationContextPool ??
                             throw new ArgumentNullException(nameof(operationContextPool));
     _queryExecutor = queryExecutor ??
                      throw new ArgumentNullException(nameof(queryExecutor));
     _mutationExecutor = mutationExecutor ??
                         throw new ArgumentNullException(nameof(mutationExecutor));
     _subscriptionExecutor = subscriptionExecutor ??
                             throw new ArgumentNullException(nameof(subscriptionExecutor));
     _transactionScopeHandler = transactionScopeHandler ??
                                throw new ArgumentNullException(nameof(transactionScopeHandler));
 }
예제 #11
0
 public PaymentsService(IPaymentTransfersRepository paymentTransfersRepository,
                        ITransactionScopeHandler transactionScopeHandler,
                        IPrivateBlockchainFacadeClient pbfClient,
                        IMAVNPropertyIntegrationClient realEstateIntegrationClient,
                        IEligibilityEngineClient eligibilityEngineClient,
                        ISettingsService settingsService,
                        IWalletManagementClient wmClient,
                        ICustomerProfileClient cpClient,
                        ICampaignClient campaignClient,
                        ILogFactory logFactory)
 {
     _functionCallEncoder         = new FunctionCallEncoder();
     _abiEncode                   = new ABIEncode();
     _paymentTransfersRepository  = paymentTransfersRepository;
     _transactionScopeHandler     = transactionScopeHandler;
     _pbfClient                   = pbfClient;
     _realEstateIntegrationClient = realEstateIntegrationClient;
     _eligibilityEngineClient     = eligibilityEngineClient;
     _settingsService             = settingsService;
     _wmClient       = wmClient;
     _cpClient       = cpClient;
     _campaignClient = campaignClient;
     _log            = logFactory.CreateLog(this);
 }
예제 #12
0
 public TransactionalRequestHandlerDecorator(IRequestHandler <TCommand, TResult> requestHandler, ITransactionScopeHandler transactionScopeHandler)
 {
     this.requestHandler          = requestHandler;
     this.transactionScopeHandler = transactionScopeHandler;
 }
예제 #13
0
 public TransactionalNotificationHandlerDecorator(INotificationHandler <TNotification> notificationHandler, ITransactionScopeHandler transactionScopeHandler)
 {
     this.notificationHandler     = notificationHandler;
     this.transactionScopeHandler = transactionScopeHandler;
 }