public SpecialOrderLogicImpl(IUnitOfWork unitOfWork, IEventLogRepository log, IGenericQueueRepository queue,
                                     IGenericSubscriptionQueueRepository genericSubscriptionQueue,
                                     IOrderHistoryDetailRepository detailRepo, IOrderHistoryHeaderRepsitory headerRepo,
                                     ICustomerRepository customerRepository, IMessageTemplateLogic messageTemplateLogic,
                                     IDsrLogic dsrLogic, IUserProfileLogic userProfileLogic,
                                     IUserMessagingPreferenceRepository userMessagingPreferenceRepository,
                                     IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository,
                                     Func <Channel, IMessageProvider> messageProviderFactory)
        {
            _unitOfWork = unitOfWork;
            _log        = log;
            _queue      = queue;
            _genericSubscriptionQueue = genericSubscriptionQueue;
            _keepListening            = true;
            _headerRepo           = headerRepo;
            _detailRepo           = detailRepo;
            _customerRepository   = customerRepository;
            _messageTemplateLogic = messageTemplateLogic;
            _dsrLogic             = dsrLogic;
            _userProfileLogic     = userProfileLogic;
            _userMessagingPreferenceRepository    = userMessagingPreferenceRepository;
            _userPushNotificationDeviceRepository = userPushNotificationDeviceRepository;
            _messageProviderFactory = messageProviderFactory;

            // subscribe to event to receive message through subscription
            _genericSubscriptionQueue.MessageReceived += GenericSubscriptionQueue_MessageReceived;
        }
Example #2
0
 public SettingsLogicImpl(IUnitOfWork uow, ISettingsRepository repo, IUserProfileRepository userProfileRepository,
                          IUserMessagingPreferenceRepository userMessagingPreferenceRepository, IEventLogRepository logRepo)
 {
     _log = logRepo;
     _messagingPrefRepo = userMessagingPreferenceRepository;
     _profileRepo       = userProfileRepository;
     _repo = repo;
     _uow  = uow;
 }
Example #3
0
 public BaseNotificationHandlerImpl(IUserProfileLogic userProfileLogic, IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository, ICustomerRepository customerRepository,
                                    IUserMessagingPreferenceRepository userMessagingPreferenceRepository, Func <Channel, IMessageProvider> messageProviderFactory, IEventLogRepository log,
                                    IDsrLogic dsrLogic)
 {
     this.userProfileLogic = userProfileLogic;
     this.userPushNotificationDeviceRepository = userPushNotificationDeviceRepository;
     this.customerRepository = customerRepository;
     this.userMessagingPreferenceRepository = userMessagingPreferenceRepository;
     this.messageProviderFactory            = messageProviderFactory;
     this.log  = log;
     _dsrLogic = dsrLogic;
 }
 public HasNewsNotificationHandlerImpl(IEventLogRepository eventLogRepository, IUserProfileLogic userProfileLogic, IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository,
                                       ICustomerRepository customerRepository, IUserMessagingPreferenceRepository userMessagingPreferenceRepository, Func <Channel, IMessageProvider> messageProviderFactory,
                                       IDsrLogic dsrLogic) :
     base(userProfileLogic, userPushNotificationDeviceRepository, customerRepository,
          userMessagingPreferenceRepository, messageProviderFactory,
          eventLogRepository, dsrLogic)
 {
     this.eventLogRepository = eventLogRepository;
     this.userProfileLogic   = userProfileLogic;
     this.userPushNotificationDeviceRepository = userPushNotificationDeviceRepository;
     this.customerRepository = customerRepository;
     this.userMessagingPreferenceRepository = userMessagingPreferenceRepository;
     this.messageProviderFactory            = messageProviderFactory;
 }
Example #5
0
 public PaymentConfirmationNotificationHandlerImpl(IEventLogRepository eventLogRepository, IUserProfileLogic userProfileLogic,
                                                   IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository, ICustomerRepository customerRepository,
                                                   IUserMessagingPreferenceRepository userMessagingPreferenceRepository, Func <Channel, IMessageProvider> messageProviderFactory,
                                                   IMessageTemplateLogic messageTemplateLogic, IKPayInvoiceRepository kpayInvoiceRepo, ICustomerBankRepository customerBankRepo,
                                                   IDsrLogic dsrLogic)
     : base(userProfileLogic, userPushNotificationDeviceRepository, customerRepository,
            userMessagingPreferenceRepository, messageProviderFactory, eventLogRepository, dsrLogic)
 {
     _log                  = eventLogRepository;
     _userLogic            = userProfileLogic;
     _pushRepo             = userPushNotificationDeviceRepository;
     _customerRepo         = customerRepository;
     _userPreferenceRepo   = userMessagingPreferenceRepository;
     _messageTemplateLogic = messageTemplateLogic;
     _invoiceRepo          = kpayInvoiceRepo;
     _bankRepo             = customerBankRepo;
 }
 public MessagingLogicImpl(IUnitOfWork unitOfWork, IUserMessageRepository userMessageRepository, IUserMessagingPreferenceRepository userMessagingPreferenceRepository,
                           IEventLogRepository eventLogRepository, IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository,
                           IPushNotificationMessageProvider pushNotificationMessageProvider, ICustomerRepository custRepo,
                           IUserProfileRepository userProfileRepository, IEmailClient emailClient,
                           IMessageTemplateLogic messageTemplateLogic)
 {
     _log = eventLogRepository;
     _pushNotificationMessageProvider = pushNotificationMessageProvider;
     _uow                               = unitOfWork;
     _emailClient                       = emailClient;
     _userMessageRepository             = userMessageRepository;
     _userMessagingPreferenceRepository = userMessagingPreferenceRepository;
     //_userProfileLogic = userProfileLogic;
     _custRepo = custRepo;
     _userRepo = userProfileRepository;
     _userPushNotificationDeviceRepository = userPushNotificationDeviceRepository;
     _messageTemplateLogic = messageTemplateLogic;
 }
Example #7
0
 public EtaNotificationHandlerImpl(IEventLogRepository eventLogRepository, IUserProfileLogic userProfileLogic, IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository,
                                   ICustomerRepository customerRepository, IUserMessagingPreferenceRepository userMessagingPreferenceRepository, Func <Channel, IMessageProvider> messageProviderFactory,
                                   IOrderHistoryHeaderRepsitory orderHistoryRepository, IMessageTemplateLogic messageTemplateLogic, IUnitOfWork unitOfWork,
                                   IDsrLogic dsrLogic)
     : base(userProfileLogic, userPushNotificationDeviceRepository, customerRepository,
            userMessagingPreferenceRepository, messageProviderFactory, eventLogRepository,
            dsrLogic)
 {
     this.eventLogRepository = eventLogRepository;
     this.userProfileLogic   = userProfileLogic;
     this.userPushNotificationDeviceRepository = userPushNotificationDeviceRepository;
     this.customerRepository = customerRepository;
     this.userMessagingPreferenceRepository = userMessagingPreferenceRepository;
     this.messageProviderFactory            = messageProviderFactory;
     this.orderHistoryRepository            = orderHistoryRepository;
     this.messageTemplateLogic = messageTemplateLogic;
     this.unitOfWork           = unitOfWork;
 }
 public OrderConfirmationNotificationHandlerImpl(IEventLogRepository eventLogRepository, IUserProfileLogic userProfileLogic,
                                                 IUserPushNotificationDeviceRepository userPushNotificationDeviceRepository,
                                                 IMessageTemplateLogic messageTemplateLogic, ICustomerRepository customerRepository,
                                                 IUserMessagingPreferenceRepository userMessagingPreferenceRepository,
                                                 Func <Channel, IMessageProvider> messageProviderFactory,
                                                 IDsrLogic dsrLogic, ICatalogRepository catalogRepository,
                                                 IOrderLogic orderLogic, IPriceLogic priceLogic)
     : base(userProfileLogic, userPushNotificationDeviceRepository, customerRepository,
            userMessagingPreferenceRepository, messageProviderFactory, eventLogRepository,
            dsrLogic)
 {
     _priceLogic             = priceLogic;
     _catRepo                = catalogRepository;
     this.eventLogRepository = eventLogRepository;
     this.userProfileLogic   = userProfileLogic;
     this.userPushNotificationDeviceRepository = userPushNotificationDeviceRepository;
     this.customerRepository = customerRepository;
     this.userMessagingPreferenceRepository = userMessagingPreferenceRepository;
     _messageTemplateLogic       = messageTemplateLogic;
     this.messageProviderFactory = messageProviderFactory;
     this._orderLogic            = orderLogic;
 }