示例#1
0
 public ReferralStakesStatusUpdater(
     IReferralStakesRepository referralStakesRepository,
     IStakesBlockchainDataRepository stakesBlockchainDataRepository,
     IBlockchainEncodingService blockchainEncodingService,
     ISettingsService settingsService,
     ITransactionRunner transactionRunner,
     IWalletManagementClient walletManagementClient,
     IPrivateBlockchainFacadeClient pbfClient,
     IRabbitPublisher <ReferralStakeReservedEvent> stakeReservedPublisher,
     IRabbitPublisher <ReferralStakeReleasedEvent> stakeReleasedPublisher,
     IRabbitPublisher <ReferralStakeBurntEvent> stakeBurntPublisher,
     IRabbitPublisher <ReferralStakeStatusUpdatedEvent> statusUpdatedPublisher)
 {
     _referralStakesRepository       = referralStakesRepository;
     _stakesBlockchainDataRepository = stakesBlockchainDataRepository;
     _blockchainEncodingService      = blockchainEncodingService;
     _settingsService        = settingsService;
     _transactionRunner      = transactionRunner;
     _walletManagementClient = walletManagementClient;
     _pbfClient = pbfClient;
     _stakeReservedPublisher = stakeReservedPublisher;
     _stakeReleasedPublisher = stakeReleasedPublisher;
     _stakeBurntPublisher    = stakeBurntPublisher;
     _statusUpdatedPublisher = statusUpdatedPublisher;
 }
示例#2
0
 public ReferralStakesService(
     IReferralStakesRepository referralStakesRepository,
     IStakesBlockchainDataRepository stakesBlockchainDataRepository,
     IReferralStakesStatusUpdater referralStakesStatusUpdater,
     IBlockchainEncodingService blockchainEncodingService,
     IRabbitPublisher <PushNotificationEvent> pushNotificationsPublisher,
     ITransactionRunner transactionRunner,
     IPrivateBlockchainFacadeClient pbfClient,
     ICustomerProfileClient customerProfileClient,
     ICampaignClient campaignClient,
     IWalletManagementClient walletManagementClient,
     IMoneyFormatter moneyFormatter,
     ISettingsService settingsService,
     IPushNotificationsSettingsService pushNotificationsSettingsService,
     ILogFactory logFactory)
 {
     _log = logFactory.CreateLog(this);
     _referralStakesRepository       = referralStakesRepository;
     _stakesBlockchainDataRepository = stakesBlockchainDataRepository;
     _referralStakesStatusUpdater    = referralStakesStatusUpdater;
     _blockchainEncodingService      = blockchainEncodingService;
     _pushNotificationsPublisher     = pushNotificationsPublisher;
     _transactionRunner                = transactionRunner;
     _pbfClient                        = pbfClient;
     _customerProfileClient            = customerProfileClient;
     _campaignClient                   = campaignClient;
     _walletManagementClient           = walletManagementClient;
     _moneyFormatter                   = moneyFormatter;
     _settingsService                  = settingsService;
     _pushNotificationsSettingsService = pushNotificationsSettingsService;
     _componentSourceName              = $"{AppEnvironment.Name} - {AppEnvironment.Version}";
 }
示例#3
0
 public OperationsService(ITransfersRepository transfersRepository,
                          IBonusCashInsRepository bonusCashInsRepository,
                          ICampaignClient campaignClient,
                          IPrivateBlockchainFacadeClient privateBlockchainFacadeClient,
                          ICustomerTierRepository customerTierRepository,
                          IMemoryCache memoryCache,
                          TimeSpan customerWalletsCacheExpirationPeriod,
                          IPartnersPaymentsRepository partnersPaymentsRepository,
                          IReferralStakesRepository referralStakesRepository,
                          IPartnerManagementClient partnerManagementClient,
                          ILinkedWalletTransfersRepository linkedWalletTransfersRepository,
                          IFeeCollectedOperationsRepository feeCollectedOperationsRepository,
                          ILinkWalletOperationsRepository linkWalletOperationsRepository,
                          IVoucherPurchasePaymentsRepository voucherPurchasePaymentsRepository,
                          string tokenSymbol,
                          ILogFactory logFactory)
 {
     _transfersRepository                  = transfersRepository;
     _bonusCashInsRepository               = bonusCashInsRepository;
     _campaignClient                       = campaignClient;
     _privateBlockchainFacadeClient        = privateBlockchainFacadeClient;
     _customerTierRepository               = customerTierRepository;
     _customerWalletsCacheExpirationPeriod = customerWalletsCacheExpirationPeriod;
     _tokenSymbol = tokenSymbol;
     _partnersPaymentsRepository        = partnersPaymentsRepository;
     _partnerManagementClient           = partnerManagementClient;
     _referralStakesRepository          = referralStakesRepository;
     _linkedWalletTransfersRepository   = linkedWalletTransfersRepository;
     _feeCollectedOperationsRepository  = feeCollectedOperationsRepository;
     _linkWalletOperationsRepository    = linkWalletOperationsRepository;
     _voucherPurchasePaymentsRepository = voucherPurchasePaymentsRepository;
     _customerWalletsCache = new OnDemandDataCache <string>(memoryCache);
     _log = logFactory.CreateLog(this);
 }
 public TransactionFailedEventHandler(
     IReferralStakesRepository referralStakesRepository,
     IStakesBlockchainDataRepository stakesBlockchainDataRepository,
     IReferralStakesStatusUpdater referralStakesStatusUpdater,
     ILogFactory logFactory) : base(referralStakesRepository, stakesBlockchainDataRepository, logFactory)
 {
     _referralStakesStatusUpdater = referralStakesStatusUpdater;
 }
 public CustomerProfileDeactivationRequestedHandler(
     IReferralStakesRepository referralStakesRepository,
     IReferralStakesStatusUpdater referralStakesStatusUpdater,
     ILogFactory logFactory)
 {
     _referralStakesRepository    = referralStakesRepository;
     _referralStakesStatusUpdater = referralStakesStatusUpdater;
     _log = logFactory.CreateLog(this);
 }
 public TransactionStatusChangedHandlerBase
 (
     IReferralStakesRepository referralStakesRepository,
     IStakesBlockchainDataRepository stakesBlockchainDataRepository,
     ILogFactory logFactory)
 {
     _referralStakesRepository       = referralStakesRepository;
     _referralStakesRepository       = referralStakesRepository;
     _stakesBlockchainDataRepository = stakesBlockchainDataRepository;
     _log = logFactory.CreateLog(this);
 }