Exemple #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 PushNotificationsPublisher(
     ILogFactory logFactory,
     string connectionString,
     string exchangeName,
     IPushNotificationsSettingsService pushNotificationsSettingsService,
     IMoneyFormatter moneyFormatter)
     : base(logFactory, connectionString, exchangeName)
 {
     _pushNotificationsSettingsService = pushNotificationsSettingsService;
     _moneyFormatter = moneyFormatter;
 }
 public EmailNotificationPublisher(
     string connectionString,
     string exchangeName,
     ILogFactory logFactory,
     IEmailNotificationsSettingsService emailNotificationsSettingsService,
     string customerSupportNumber,
     IMoneyFormatter moneyFormatter)
     : base(logFactory, connectionString, exchangeName)
 {
     _emailNotificationsSettingsService = emailNotificationsSettingsService;
     _customerSupportNumber             = customerSupportNumber
                                          ?? throw new ArgumentNullException(nameof(customerSupportNumber));
     _moneyFormatter = moneyFormatter;
 }