Exemplo n.º 1
0
 public EmailVerificationService(
     IEmailVerificationCodeRepository emailVerificationCodeRepository,
     ILogFactory logFactory,
     IRabbitPublisher <EmailMessageEvent> emailEventPublisher,
     IRabbitPublisher <EmailCodeVerifiedEvent> codeVerifiedEventPublisher,
     string verificationEmailTemplateId,
     string verificationEmailSubjectTemplateId,
     string verificationEmailVerificationLink,
     string verificationThankYouEmailTemplateId,
     string verificationThankYouEmailSubjectTemplateId,
     ICustomerProfileClient customerProfileClient,
     ICallRateLimiterService callRateLimiterService)
 {
     _emailVerificationCodeRepository            = emailVerificationCodeRepository;
     _emailEventPublisher                        = emailEventPublisher;
     _codeVerifiedEventPublisher                 = codeVerifiedEventPublisher;
     _verificationEmailTemplateId                = verificationEmailTemplateId;
     _verificationEmailSubjectTemplateId         = verificationEmailSubjectTemplateId;
     _verificationEmailVerificationLink          = verificationEmailVerificationLink;
     _verificationThankYouEmailTemplateId        = verificationThankYouEmailTemplateId;
     _verificationThankYouEmailSubjectTemplateId = verificationThankYouEmailSubjectTemplateId;
     _customerProfileClient                      = customerProfileClient;
     _callRateLimiterService                     = callRateLimiterService;
     _log = logFactory.CreateLog(this);
 }
 public BlockchainIndexingService(
     IEthereumNodeJobClient ethereumNodeJobClient,
     IIndexingStateRepository indexingStateRepository,
     IRabbitPublisher <EthereumWalletLinkingStatusChangeCompletedEvent>
     walletLinkingStatusChangeCompletedPublisher,
     IRabbitPublisher <TransferToExternalCompletedEvent> transferToExternalCompletedPublisher,
     IRabbitPublisher <TransferToInternalDetectedEvent> transferToInternalDetectedPublisher,
     IRabbitPublisher <SeizeToInternalDetectedEvent> seizeToInternalDetectedPublisher,
     int blockConfirmationLevel,
     ILogFactory logFactory,
     int?blockBatchSize = null)
 {
     _ethereumNodeJobClient   = ethereumNodeJobClient;
     _indexingStateRepository = indexingStateRepository;
     _walletLinkingStatusChangeCompletedPublisher = walletLinkingStatusChangeCompletedPublisher;
     _transferToExternalCompletedPublisher        = transferToExternalCompletedPublisher;
     _transferToInternalDetectedPublisher         = transferToInternalDetectedPublisher;
     _seizeToInternalDetectedPublisher            = seizeToInternalDetectedPublisher;
     _blockConfirmationLevel            = blockConfirmationLevel;
     _blockBatchSize                    = blockBatchSize;
     _publicAccountLinkedEventSignature =
         $"0x{ABITypedRegistry.GetEvent<PublicAccountLinkedEventDTO>().Sha3Signature}";
     _publicAccountUnlinkedEventSignature =
         $"0x{ABITypedRegistry.GetEvent<PublicAccountUnlinkedEventDTO>().Sha3Signature}";
     _transferredFromInternalNetworkEventSignature =
         $"0x{ABITypedRegistry.GetEvent<TransferredFromInternalNetworkEventDTO>().Sha3Signature}";
     _transferredToInternalNetworkEventSignature =
         $"0x{ABITypedRegistry.GetEvent<TransferredToInternalNetworkEventDTO>().Sha3Signature}";
     _publicAccountUnlinkedEventSignature =
         $"0x{ABITypedRegistry.GetEvent<PublicAccountUnlinkedEventDTO>().Sha3Signature}";
     _seizeFromEventSignature =
         $"0x{ABITypedRegistry.GetEvent<SeizeFromEventDTO>().Sha3Signature}";
     _eventTopicDecoder = new EventTopicDecoder();
     _log = logFactory.CreateLog(this);
 }
 public AddedCountryDomainEventHandler(
     ILogger <AddedCountryDomainEventHandler> logger,
     IRabbitPublisher rabbitPublisher)
 {
     _logger          = logger;
     _rabbitPublisher = rabbitPublisher;
 }
 public RemovedProvinceDomainEventHandler(
     ILogger <RemovedProvinceDomainEventHandler> logger,
     IRabbitPublisher rabbitPublisher)
 {
     _logger          = logger;
     _rabbitPublisher = rabbitPublisher;
 }
 public VouchersService(
     IPaymentManagementClient paymentManagementClient,
     IPartnerManagementClient partnerManagementClient,
     ICustomerProfileClient customerProfileClient,
     IVouchersRepository vouchersRepository,
     ICampaignsRepository campaignsRepository,
     IPaymentRequestsRepository paymentRequestsRepository,
     ILogFactory logFactory,
     IRedisLocksService redisLocksService,
     IRabbitPublisher <SmartVoucherSoldEvent> voucherSoldPublisher,
     IRabbitPublisher <SmartVoucherUsedEvent> voucherUsedPublisher,
     IRabbitPublisher <SmartVoucherTransferredEvent> voucherTransferredPublisher,
     TimeSpan lockTimeOut)
 {
     _paymentManagementClient   = paymentManagementClient;
     _partnerManagementClient   = partnerManagementClient;
     _customerProfileClient     = customerProfileClient;
     _vouchersRepository        = vouchersRepository;
     _campaignsRepository       = campaignsRepository;
     _paymentRequestsRepository = paymentRequestsRepository;
     _redisLocksService         = redisLocksService;
     _voucherSoldPublisher      = voucherSoldPublisher;
     _log                         = logFactory.CreateLog(this);
     _lockTimeOut                 = lockTimeOut;
     _voucherUsedPublisher        = voucherUsedPublisher;
     _voucherTransferredPublisher = voucherTransferredPublisher;
 }
Exemplo n.º 6
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 DemoHotelService(
     string baseCurrencyCode,
     IReferralHotelsRepository referralHotelsRepository,
     ISettingsService settingsService,
     INotificationPublisherService notificationPublisherService,
     IHashingManager hashingManager,
     ICustomerProfileClient customerProfileClient,
     ICampaignClient campaignClient,
     ILogFactory logFactory,
     TimeSpan referralExpirationPeriod,
     IMapper mapper,
     IRabbitPublisher <HotelReferralUsedEvent> hotelReferralUsedPublisher)
 {
     _baseCurrencyCode             = baseCurrencyCode;
     _referralHotelsRepository     = referralHotelsRepository;
     _settingsService              = settingsService;
     _notificationPublisherService = notificationPublisherService;
     _hashingManager           = hashingManager;
     _customerProfileClient    = customerProfileClient;
     _campaignClient           = campaignClient;
     _referralExpirationPeriod = referralExpirationPeriod;
     _mapper = mapper;
     _hotelReferralUsedPublisher = hotelReferralUsedPublisher;
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 8
0
 public ReferralHotelsService(
     IStakeService stakeService,
     ICustomerProfileClient customerProfileClient,
     ICurrencyConvertorClient currencyConverterClient,
     ICampaignClient campaignClient,
     IPartnerManagementClient partnerManagementClient,
     IRabbitPublisher <HotelReferralUsedEvent> rabbitPublisher,
     INotificationPublisherService notificationPublisherService,
     IReferralHotelsRepository referralHotelsRepository,
     ISettingsService settingsService,
     IHashingManager hashingManager,
     TimeSpan referralExpirationPeriod,
     TimeSpan referralLimitPeriod,
     int referralLimit,
     IMapper mapper,
     string globalBaseCurrencyCode,
     ILogFactory logFactory)
 {
     _stakeService                 = stakeService;
     _customerProfileClient        = customerProfileClient;
     _currencyConverterClient      = currencyConverterClient;
     _campaignClient               = campaignClient;
     _partnerManagementClient      = partnerManagementClient;
     _rabbitPublisher              = rabbitPublisher;
     _notificationPublisherService = notificationPublisherService;
     _referralHotelsRepository     = referralHotelsRepository;
     _settingsService              = settingsService;
     _hashingManager               = hashingManager;
     _referralExpirationPeriod     = referralExpirationPeriod;
     _referralLimitPeriod          = referralLimitPeriod;
     _referralLimit                = referralLimit;
     _mapper = mapper;
     _globalBaseCurrencyCode = globalBaseCurrencyCode;
     _log = logFactory.CreateLog(this);
 }
 public PasswordResetService(
     ICustomerProfileClient customerProfileClient,
     ICredentialsClient credentialsClient,
     IPostProcessService postProcessService,
     IRabbitPublisher <EmailMessageEvent> emailEventPublisher,
     ILogFactory logFactory,
     string passwordResetEmailTemplateId,
     string passwordResetEmailSubjectTemplateId,
     string passwordResetEmailVerificationLinkTemplate,
     string passwordSuccessfulResetEmailTemplateId,
     string passwordSuccessfulResetEmailSubjectTemplateId,
     ICustomerFlagsRepository customerFlagsRepository,
     IMapper mapper)
 {
     _customerProfileClient                         = customerProfileClient;
     _credentialsClient                             = credentialsClient;
     _postProcessService                            = postProcessService;
     _emailEventPublisher                           = emailEventPublisher;
     _passwordResetEmailTemplateId                  = passwordResetEmailTemplateId;
     _passwordResetEmailSubjectTemplateId           = passwordResetEmailSubjectTemplateId;
     _passwordResetEmailVerificationLinkTemplate    = passwordResetEmailVerificationLinkTemplate;
     _passwordSuccessfulResetEmailTemplateId        = passwordSuccessfulResetEmailTemplateId;
     _passwordSuccessfulResetEmailSubjectTemplateId = passwordSuccessfulResetEmailSubjectTemplateId;
     _customerFlagsRepository                       = customerFlagsRepository;
     _log    = logFactory.CreateLog(this);
     _mapper = mapper;
 }
 public CustomersService(ICredentialsClient credentialsClient,
                         IPostProcessService postProcessService,
                         ICustomerProfileClient customerProfileClient,
                         ICustomerFlagsRepository customerFlagsRepository,
                         ISessionsServiceClient sessionsServiceClient,
                         string passwordSuccessfulChangeEmailTemplateId,
                         string passwordSuccessfulChangeEmailSubjectTemplateId,
                         ILogFactory logFactory,
                         int getCustomerBlockStatusBatchMaxValue,
                         IRabbitPublisher <EmailMessageEvent> emailEventPublisher,
                         string customerBlockEmailTemplateId,
                         string customerUnblockEmailTemplateId,
                         string customerBlockSubjectTemplateId,
                         string customerUnblockSubjectTemplateId,
                         string customerSupportPhoneNumber)
 {
     _credentialsClient       = credentialsClient;
     _postProcessService      = postProcessService;
     _customerProfileClient   = customerProfileClient;
     _sessionsServiceClient   = sessionsServiceClient;
     _customerFlagsRepository = customerFlagsRepository;
     _passwordSuccessfulChangeEmailTemplateId        = passwordSuccessfulChangeEmailTemplateId;
     _passwordSuccessfulChangeEmailSubjectTemplateId = passwordSuccessfulChangeEmailSubjectTemplateId;
     _getCustomerBlockStatusBatchMaxValue            = getCustomerBlockStatusBatchMaxValue;
     _emailEventPublisher              = emailEventPublisher;
     _customerBlockEmailTemplateId     = customerBlockEmailTemplateId;
     _customerUnblockEmailTemplateId   = customerUnblockEmailTemplateId;
     _customerBlockSubjectTemplateId   = customerBlockSubjectTemplateId;
     _customerUnblockSubjectTemplateId = customerUnblockSubjectTemplateId;
     _customerSupportPhoneNumber       = customerSupportPhoneNumber;
     _log = logFactory.CreateLog(this);
 }
 public WalletLinker(IWalletLinkingRequestsRepository requestsRepository,
                     ILogFactory logFactory,
                     int linkCodeLength,
                     IPrivateBlockchainFacadeClient pbfClient,
                     ISettingsService settingsService,
                     IRabbitPublisher <WalletLinkingStatusChangeRequestedEvent> requestedPublisher,
                     IRabbitPublisher <WalletLinkingStatusChangeCompletedEvent> completedPublisher,
                     IRabbitPublisher <WalletLinkingStatusChangeFinalizedEvent> finalizedPublisher,
                     ISignatureValidator signatureValidator,
                     IWalletLinkingRequestsCounterRepository countersRepository,
                     ICustomersService customersService,
                     IWalletManagementClient walletManagementClient,
                     ITransactionRunner transactionRunner)
 {
     _requestsRepository     = requestsRepository;
     _linkCodeLength         = linkCodeLength;
     _pbfClient              = pbfClient;
     _settingsService        = settingsService;
     _requestedPublisher     = requestedPublisher;
     _completedPublisher     = completedPublisher;
     _signatureValidator     = signatureValidator;
     _countersRepository     = countersRepository;
     _customersService       = customersService;
     _walletManagementClient = walletManagementClient;
     _transactionRunner      = transactionRunner;
     _finalizedPublisher     = finalizedPublisher;
     _log = logFactory.CreateLog(this);
 }
 public CustomerRegisteredInBlockchainHandler(
     IRabbitPublisher <CustomerWalletCreatedEvent> customerWalletCreationPublisher,
     ILogFactory logFactory)
 {
     _customerWalletCreationPublisher = customerWalletCreationPublisher;
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 13
0
 public ReferralLeadService(
     IStakeService stakeService,
     IMAVNPropertyIntegrationClient propertyIntegrationClient,
     IRabbitPublisher <PropertyLeadApprovedReferralEvent> propertyLeadApprovedReferralPublisher,
     IReferralLeadRepository referralLeadRepository,
     INotificationPublisherService notificationPublisherService,
     ISettingsService settingsService,
     IHashingManager hashingManager,
     IAgentManagementClient agentManagementClient,
     ICustomerProfileClient customerProfileClient,
     IDictionariesClient dictionariesClient,
     IPropertyPurchaseRepository propertyPurchaseRepository,
     IRabbitPublisher <LeadStateChangedEvent> leadStateChangedPublisher,
     IMapper mapper,
     ILogFactory logFactory)
 {
     _stakeService = stakeService;
     _propertyIntegrationClient             = propertyIntegrationClient;
     _propertyLeadApprovedReferralPublisher = propertyLeadApprovedReferralPublisher;
     _referralLeadRepository       = referralLeadRepository;
     _notificationPublisherService = notificationPublisherService;
     _settingsService            = settingsService;
     _hashingManager             = hashingManager;
     _agentManagementClient      = agentManagementClient;
     _customerProfileClient      = customerProfileClient;
     _dictionariesClient         = dictionariesClient;
     _propertyPurchaseRepository = propertyPurchaseRepository;
     _leadStateChangedPublisher  = leadStateChangedPublisher
                                   ?? throw new ArgumentNullException(nameof(propertyLeadApprovedReferralPublisher));
     _mapper = mapper;
     _log    = logFactory.CreateLog(this);
 }
Exemplo n.º 14
0
 public StartupManager(
     IRabbitPublisher <CustomerRegisteredInBlockchainEvent> customerRegisteredEventPublishingService,
     IndexingService indexingService,
     BlocksLagWatcher blocksLagWatcher,
     ILogFactory logFactory,
     IRabbitPublisher <TransactionFailedInBlockchainEvent> transactionFailedEventPublishingService,
     IRabbitPublisher <MintEvent> mintEventPublishingService,
     IRabbitPublisher <TransferEvent> transferEventPublishingService,
     IRabbitPublisher <UndecodedEvent> undecodedEventPublishingService,
     IRabbitPublisher <TransactionCompletedInBlockchainEvent> trasactionCompletedEventPublishingService,
     IRabbitPublisher <StakeIncreasedEvent> stakeIncreasedEventPublishingService,
     IRabbitPublisher <StakeReleasedEvent> stakeReleasedEventPublishingService,
     IRabbitPublisher <FeeCollectedEvent> feeCollectedEventPublishingService,
     IRabbitPublisher <SeizedFromEvent> seizedFromEventPublishingService)
 {
     _customerRegisteredEventPublishingService = customerRegisteredEventPublishingService;
     _indexingService = indexingService;
     _log             = logFactory.CreateLog(this);
     _transactionFailedEventPublishingService = transactionFailedEventPublishingService;
     _mintEventPublishingService                = mintEventPublishingService;
     _transferEventPublishingService            = transferEventPublishingService;
     _undecodedEventPublishingService           = undecodedEventPublishingService;
     _trasactionCompletedEventPublishingService = trasactionCompletedEventPublishingService;
     _stakeIncreasedEventPublishingService      = stakeIncreasedEventPublishingService;
     _stakeReleasedEventPublishingService       = stakeReleasedEventPublishingService;
     _feeCollectedEventPublishingService        = feeCollectedEventPublishingService;
     _blocksLagWatcher = blocksLagWatcher;
     _seizedFromEventPublishingService = seizedFromEventPublishingService;
 }
 public AgentService(
     string agentApprovedPushTemplateId,
     string agentRejectedPushTemplateId,
     string agentRejectedEmailSubjectTemplateId,
     string agentRejectedEmailTemplateId,
     IRequirementsService requirementsService,
     IAgentRepository agentRepository,
     IImageRepository imageRepository,
     ICustomerProfileClient customerProfileClient,
     IPrivateBlockchainFacadeClient pbfClient,
     IRabbitPublisher <PushNotificationEvent> pushNotificationPublisher,
     IRabbitPublisher <EmailMessageEvent> emailNotificationPublisher,
     IMAVNPropertyIntegrationClient tokenPropertyIntegrationClient,
     ISettingsService settingsService,
     ILogFactory logFactory)
 {
     _agentApprovedPushTemplateId         = agentApprovedPushTemplateId;
     _agentRejectedPushTemplateId         = agentRejectedPushTemplateId;
     _agentRejectedEmailSubjectTemplateId = agentRejectedEmailSubjectTemplateId;
     _agentRejectedEmailTemplateId        = agentRejectedEmailTemplateId;
     _requirementsService            = requirementsService;
     _agentRepository                = agentRepository;
     _imageRepository                = imageRepository;
     _customerProfileClient          = customerProfileClient;
     _pbfClient                      = pbfClient;
     _pushNotificationPublisher      = pushNotificationPublisher;
     _emailNotificationPublisher     = emailNotificationPublisher;
     _tokenPropertyIntegrationClient = tokenPropertyIntegrationClient;
     _settingsService                = settingsService;
     _log = logFactory.CreateLog(this);
     _componentSourceName = $"{AppEnvironment.Name} - {AppEnvironment.Version}";
 }
Exemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoomController"/> class.
 /// </summary>
 /// <param name="rr">The room repository.</param>
 /// <param name="cr">The chat repository.</param>
 /// <param name="qr">The question repository.</param>
 /// <param name="irabbitPublisher">The rabbitMQ publisher.</param>
 public RoomController(IRoomRepository rr, IChatRepository cr, IQuestionRepository qr, IRabbitPublisher irabbitPublisher)
 {
     _rr = rr;
     _cr = cr;
     _qr = qr;
     _irabbitPublisher = irabbitPublisher;
 }
Exemplo n.º 17
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;
 }
Exemplo n.º 18
0
 public DemoLeadService(
     IReferralLeadRepository referralLeadRepository,
     ISettingsService settingsService,
     INotificationPublisherService notificationPublisherService,
     IHashingManager hashingManager,
     IAgentManagementClient agentManagementClient,
     ICustomerProfileClient customerProfileClient,
     IDictionariesClient dictionariesClient,
     CommissionManager commissionManager,
     ILogFactory logFactory,
     int delay,
     IOfferToPurchasePurchaseRepository offerToPurchasePurchaseRepository,
     IRabbitPublisher <PropertyLeadApprovedReferralEvent> propertyLeadApprovedReferralPublisher,
     IRabbitPublisher <OfferToPurchaseByLeadEvent> offerToPurchasePublisher,
     IRabbitPublisher <LeadStateChangedEvent> leadStateChangedPublisher,
     IMapper mapper,
     IPropertyPurchaseRepository propertyPurchaseRepository)
 {
     _referralLeadRepository       = referralLeadRepository;
     _settingsService              = settingsService;
     _notificationPublisherService = notificationPublisherService;
     _hashingManager        = hashingManager;
     _agentManagementClient = agentManagementClient;
     _customerProfileClient = customerProfileClient;
     _dictionariesClient    = dictionariesClient;
     _commissionManager     = commissionManager;
     _delay = delay;
     _offerToPurchasePurchaseRepository     = offerToPurchasePurchaseRepository;
     _propertyLeadApprovedReferralPublisher = propertyLeadApprovedReferralPublisher;
     _offerToPurchasePublisher   = offerToPurchasePublisher;
     _leadStateChangedPublisher  = leadStateChangedPublisher;
     _propertyPurchaseRepository = propertyPurchaseRepository;
     _mapper = mapper;
     _log    = logFactory.CreateLog(this);
 }
 public UpdatedTitleCountryDomainEventHandler(
     ILogger <UpdatedTitleCountryDomainEventHandler> logger,
     IRabbitPublisher rabbitPublisher)
 {
     _logger          = logger;
     _rabbitPublisher = rabbitPublisher;
 }
Exemplo n.º 20
0
 public ShutdownManager(
     IRabbitPublisher <EmailMessageEvent> emailMessageEventPublisher,
     IRabbitPublisher <AdminEmailVerifiedEvent> adminEmailVerifiedEventPublisher
     )
 {
     _emailMessageEventPublisher       = emailMessageEventPublisher;
     _adminEmailVerifiedEventPublisher = adminEmailVerifiedEventPublisher;
 }
 public FeeCollectedHandler(
     IWalletOwnersRepository walletOwnersRepository,
     IRabbitPublisher <FeeCollectedEvent> feeCollectedPublisher,
     ILogFactory logFactory)
 {
     _walletOwnersRepository = walletOwnersRepository;
     _feeCollectedPublisher  = feeCollectedPublisher;
     _log = logFactory.CreateLog(this);
 }
 public OfferToPurchaseService(
     IReferralLeadRepository referralLeadRepository,
     IOfferToPurchasePurchaseRepository offerToPurchasePurchaseRepository,
     IRabbitPublisher <OfferToPurchaseByLeadEvent> offerToPurchasePublisher)
 {
     _referralLeadRepository            = referralLeadRepository;
     _offerToPurchasePurchaseRepository = offerToPurchasePurchaseRepository;
     _offerToPurchasePublisher          = offerToPurchasePublisher;
 }
Exemplo n.º 23
0
 public WalletManagementService(
     ICustomerProfileClient customerProfileClient,
     IWalletFlagsRepository walletFlagsRepository,
     IRabbitPublisher <CustomerWalletStatusUpdatedEvent> walletStatusUpdatePublisher)
 {
     _customerProfileClient       = customerProfileClient;
     _walletFlagsRepository       = walletFlagsRepository;
     _walletStatusUpdatePublisher = walletStatusUpdatePublisher;
 }
Exemplo n.º 24
0
 public SeizedFromHandler(
     IWalletOwnersRepository walletOwnersRepository,
     IRabbitPublisher <SeizedFromCustomerEvent> seizedFromCustomerPublisher,
     IRabbitPublisher <SeizeBalanceFromCustomerCompletedEvent> seizeBalanceFromCustomerCompletedPublisher)
 {
     _walletOwnersRepository      = walletOwnersRepository;
     _seizedFromCustomerPublisher = seizedFromCustomerPublisher;
     _seizeBalanceFromCustomerCompletedPublisher = seizeBalanceFromCustomerCompletedPublisher;
 }
 public EmailVerificationService(
     IEmailVerificationCodeRepository emailVerificationCodeRepository,
     IRabbitPublisher <AdminEmailVerifiedEvent> codeVerifiedEventPublisher,
     ILogFactory logFactory)
 {
     _emailVerificationCodeRepository = emailVerificationCodeRepository;
     _codeVerifiedEventPublisher      = codeVerifiedEventPublisher;
     _log = logFactory.CreateLog(this);
 }
 public PushNotificationService(
     IRabbitPublisher <UpdateAuditMessageEvent> auditMessagePublisher,
     IPushProviderClient pushProviderClient,
     ILogFactory logFactory)
 {
     _auditMessagePublisher = auditMessagePublisher;
     _pushProviderClient    = pushProviderClient;
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 27
0
 public CustomerWalletCreatedHandler(
     ICustomersRegistrationReferralDataRepository customersRegistrationReferralDataRepository,
     IRabbitPublisher <CustomerRegistrationEvent> customerRegistrationEventPublisher,
     ILogFactory logFactory)
 {
     _customersRegistrationReferralDataRepository = customersRegistrationReferralDataRepository;
     _customerRegistrationEventPublisher          = customerRegistrationEventPublisher;
     _log = logFactory.CreateLog(this);
 }
 public BonusOperationService(
     IRabbitPublisher <BonusIssuedEvent> bonusIssuedPublisher,
     IMapper mapper,
     ILogFactory logFactory)
 {
     _bonusIssuedPublisher = bonusIssuedPublisher;
     _mapper = mapper;
     _log    = logFactory.CreateLog(this);
 }
Exemplo n.º 29
0
 public WalletStatusChangeFailedEventHandler(ILogFactory logFactory,
                                             IWalletLinkingRequestsRepository requestsRepository,
                                             IRabbitPublisher <WalletLinkingStatusChangeFailedEvent> failurePublisher,
                                             IPushNotificationsPublisher pushNotificationsPublisher)
 {
     _requestsRepository         = requestsRepository;
     _failurePublisher           = failurePublisher;
     _pushNotificationsPublisher = pushNotificationsPublisher;
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 30
0
 public TwitterMonitoring(
     ITwitterClient twitterClient,
     IRabbitPublisher rabbitPublisher,
     IServiceConfigurations serviceConfigurations)
 {
     _twitterClient         = twitterClient;
     _rabbitPublisher       = rabbitPublisher;
     _serviceConfigurations = serviceConfigurations;
     _tickers = LoadTickersAsync().Result;
 }