public HotelCheckoutSubscriber(
     string connectionString,
     string exchangeName,
     ICustomerProfileService customerProfileService,
     ILogFactory logFactory)
     : base(connectionString, exchangeName, logFactory)
 {
     _customerProfileService = customerProfileService;
     GuidsFieldsToValidate.Add(nameof(BonusCustomerTriggerEvent.CustomerId));
 }
        public EmailVerifiedSubscriber(
            string connectionString,
            string exchangeName,
            IFriendReferralService friendReferralService,
            ILogFactory logFactory)
            : base(connectionString, exchangeName, logFactory)
        {
            _friendReferralService = friendReferralService;

            GuidsFieldsToValidate.Add(nameof(CustomerRegistrationEvent.CustomerId));
        }
Пример #3
0
        public PropertyLeadApprovedSubscriber(
            string connectionString,
            string exchangeName,
            IReferralLeadService referralLeadService,
            ILogFactory logFactory)
            : base(connectionString, exchangeName, logFactory)
        {
            GuidsFieldsToValidate.Add(nameof(MAVNPropertyLeadApprovedEvent.ReferId));

            _referralLeadService = referralLeadService;
        }
Пример #4
0
        public OfferToPurchaseByLeadSubscriber(
            string connectionString,
            string exchangeName,
            IOfferToPurchaseService offerToPurchaseService,
            ILogFactory logFactory)
            : base(connectionString, exchangeName, logFactory)
        {
            _offerToPurchaseService = offerToPurchaseService;

            GuidsFieldsToValidate.Add(nameof(MAVNOfferToPurchaseByLeadEvent.ReferId));
        }
        public PropertyLeadApprovedReferralSubscriber(
            string connectionString,
            string exchangeName,
            ILogFactory logFactory,
            ICustomerProfileService customerProfileService)
            : base(connectionString, exchangeName, logFactory)
        {
            _customerProfileService = customerProfileService ??
                                      throw new ArgumentNullException(nameof(customerProfileService));

            GuidsFieldsToValidate.Add(nameof(PropertyLeadApprovedReferralEvent.ReferrerId));
        }
Пример #6
0
        public CustomerRegisteredSubscriber(
            string connectionString,
            string exchangeName,
            ILogFactory logFactory,
            ICustomerProfileService customerProfileService)
            : base(connectionString, exchangeName, logFactory)
        {
            _customerProfileService = customerProfileService
                                      ?? throw new ArgumentNullException(nameof(customerProfileService));

            GuidsFieldsToValidate.Add(nameof(CustomerRegistrationEvent.CustomerId));
        }
        public PropertyLeadApprovedReferralSubscriber(
            string connectionString,
            string exchangeName,
            ILogFactory logFactory,
            IRabbitPublisher <BonusTriggerEvent> bonusTriggerEventPublisher)
            : base(connectionString, exchangeName, logFactory)
        {
            _bonusTriggerEventPublisher = bonusTriggerEventPublisher ??
                                          throw new ArgumentNullException(nameof(bonusTriggerEventPublisher));

            GuidsFieldsToValidate.Add(nameof(PropertyLeadApprovedReferralEvent.ReferrerId));
        }
        public OfferToPurchaseByLeadSubscriber(
            string connectionString,
            string exchangeName,
            ILogFactory logFactory,
            ICustomerProfileService customerProfileService)
            : base(connectionString, exchangeName, logFactory)
        {
            _customerProfileService = customerProfileService ??
                                      throw new ArgumentNullException(nameof(customerProfileService));

            GuidsFieldsToValidate.Add(nameof(OfferToPurchaseByLeadEvent.AgentId));
        }
        public FriendReferralSubscriber(
            string connectionString,
            string exchangeName,
            ILogFactory logFactory,
            ICustomerProfileService customerProfileService)
            : base(connectionString, exchangeName, logFactory)
        {
            _customerProfileService = customerProfileService
                                      ?? throw new ArgumentNullException(nameof(customerProfileService));
            _log = logFactory.CreateLog(this);

            GuidsFieldsToValidate.Add(nameof(FriendReferralEvent.ReferrerId));
        }
        public VoucherPurchaseSubscriber(
            string tokenSymbol,
            string connectionString,
            string exchangeName,
            IVoucherOperationsService voucherOperationsService,
            ILogFactory logFactory)
            : base(connectionString, exchangeName, logFactory)
        {
            _voucherOperationsService = voucherOperationsService 
                                       ?? throw new ArgumentNullException(nameof(voucherOperationsService));
            _tokenSymbol = tokenSymbol;

            GuidsFieldsToValidate.Add(nameof(VoucherTokensUsedEvent.CustomerId));
        }
 public HotelCheckoutSubscriber(
     string connectionString,
     string exchangeName,
     string assetName,
     IRabbitPublisher <BonusTriggerEvent> bonusTriggerEventPublisher,
     ICurrencyConvertorClient currencyConverterClient,
     ILogFactory logFactory)
     : base(connectionString, exchangeName, logFactory)
 {
     _assetName = assetName;
     _bonusTriggerEventPublisher = bonusTriggerEventPublisher;
     _currencyConverterClient    = currencyConverterClient;
     _log = logFactory.CreateLog(this);
     GuidsFieldsToValidate.Add(nameof(BonusCustomerTriggerEvent.CustomerId));
 }
Пример #12
0
        public CustomerPhoneVerifiedSubscriber(
            string connectionString,
            string exchangeName,
            ILogFactory logFactory,
            IRabbitPublisher <BonusTriggerEvent> bonusTriggerEventPublisher,
            ICustomerProfileClient customerProfileClient)
            : base(connectionString, exchangeName, logFactory)
        {
            _bonusTriggerEventPublisher = bonusTriggerEventPublisher
                                          ?? throw new ArgumentNullException(nameof(bonusTriggerEventPublisher));

            _customerProfileClient = customerProfileClient;

            GuidsFieldsToValidate.Add(nameof(CustomerPhoneVerifiedEvent.CustomerId));
        }
        public ParticipatedInCampaignSubscriber(string connectionString,
                                                string exchangeName,
                                                ILogFactory logFactory,
                                                ICampaignService campaignService,
                                                ICustomerProfileService customerProfileService)
            : base(connectionString, exchangeName, logFactory)
        {
            _campaignService = campaignService
                               ?? throw new ArgumentNullException(nameof(campaignService));
            _customerProfileService = customerProfileService
                                      ?? throw new ArgumentNullException(nameof(customerProfileService));
            _log = logFactory.CreateLog(this);

            GuidsFieldsToValidate.Add(nameof(ParticipatedInCampaignEvent.CustomerId));
            GuidsFieldsToValidate.Add(nameof(ParticipatedInCampaignEvent.CampaignId));
        }
        public ReferralRealEstatePurchasePaymentSubscriber(
            string connectionString,
            string exchangeName,
            string assetName,
            ILogFactory logFactory,
            IRabbitPublisher <BonusTriggerEvent> bonusTriggerEventPublisher,
            ICurrencyConvertorClient currencyConverterClient)
            : base(connectionString, exchangeName, logFactory)
        {
            _bonusTriggerEventPublisher = bonusTriggerEventPublisher ??
                                          throw new ArgumentNullException(nameof(bonusTriggerEventPublisher));
            _currencyConverterClient = currencyConverterClient ??
                                       throw new ArgumentNullException(nameof(currencyConverterClient));
            _assetName = assetName;

            GuidsFieldsToValidate.Add(nameof(ReferralRealEstatePurchasePaymentEvent.CustomerId));
            GuidsFieldsToValidate.Add(nameof(ReferralRealEstatePurchasePaymentEvent.ReferralId));
        }