示例#1
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}";
 }
 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 ReferralStakesController(
     IReferralStakesService referralStakesService,
     IReferralStakesStatusUpdater referralStakesStatusUpdater,
     IMapper mapper)
 {
     _referralStakesService       = referralStakesService;
     _referralStakesStatusUpdater = referralStakesStatusUpdater;
     _mapper = mapper;
 }