예제 #1
0
        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;
        }
예제 #2
0
 public CustomerRepository(IEventLogRepository logger, ICacheRepository customerCacheRepository, IDsrLogic dsrLogic,
                           IAuditLogRepository auditLogRepository, ITermRepository termRepository)
 {
     _logger = logger;
     _customerCacheRepository = customerCacheRepository;
     _dsrLogic           = dsrLogic;
     _auditLogRepository = auditLogRepository;
     _termRepo           = termRepository;
 }
예제 #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;
 }
예제 #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;
 }
예제 #6
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;
 }