Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public SpecialOrderRepositoryImpl(ISpecialOrderDBContext specialOrderDbContext, IOrderHistoryHeaderRepsitory orderHistory, IOrderHistoryDetailRepository orderHistoryDetailRepo,
                                   IUnitOfWork unitOfWork, IEventLogRepository logRepository)
 {
     _specialOrderDbContext  = specialOrderDbContext;
     _orderHistory           = orderHistory;
     _orderHistoryDetailRepo = orderHistoryDetailRepo;
     _unitOfWork             = unitOfWork;
     _log = logRepository;
 }
Exemplo n.º 3
0
 public SiteCatalogLogicImpl(ICatalogRepository catalogRepository, IPriceLogic priceLogic, IProductImageRepository imgRepository, ICategoryImageRepository categoryImageRepository,
                             ICacheRepository catalogCacheRepository, IDivisionLogic divisionLogic, IOrderHistoryHeaderRepsitory orderHistoryHeaderRepo,
                             IOrderHistoryDetailRepository orderHistoryDetailRepo, IExportSettingLogic externalCatalogRepository, IFavoritesListLogic favoriteLogic,
                             IHistoryLogic historyLogic)
 {
     _catalogCacheRepository    = catalogCacheRepository;
     _catalogRepository         = catalogRepository;
     _categoryImageRepository   = categoryImageRepository;
     _divisionLogic             = divisionLogic;
     _externalCatalogRepository = externalCatalogRepository;
     _favoriteLogic             = favoriteLogic;
     _historyLogic    = historyLogic;
     _imgRepository   = imgRepository;
     _orderDetailRepo = orderHistoryDetailRepo;
     _orderHeaderRepo = orderHistoryHeaderRepo;
     _priceLogic      = priceLogic;
 }
Exemplo n.º 4
0
        public OrderHistoryLogicImpl(IOrderHistoryHeaderRepsitory headerRepo,
                                     IPurchaseOrderRepository poRepo,
                                     IKPayInvoiceRepository kpayInvoiceRepository,
                                     ICatalogLogic catalogLogic,
                                     IOrderHistoryDetailRepository detailRepo,
                                     IUnitOfWork unitOfWork,
                                     IEventLogRepository log,
                                     IGenericQueueRepository queue,
                                     IOrderConversionLogic conversionLogic,
                                     ICustomerRepository customerRepository,
                                     ISocketListenerRepository socket,
                                     IGenericSubscriptionQueueRepository genericSubscriptionQueue)
        {
            _log   = log;
            _queue = queue;
            _genericSubscriptionQueue = genericSubscriptionQueue;
            _socket = socket;

            _headerRepo            = headerRepo;
            _detailRepo            = detailRepo;
            _poRepo                = poRepo;
            _kpayInvoiceRepository = kpayInvoiceRepository;
            _catalogLogic          = catalogLogic;
            _unitOfWork            = unitOfWork;
            _conversionLogic       = conversionLogic;
            _keepListening         = true;
            _customerRepository    = customerRepository;

            _socket.FileReceived         += SocketFileReceived;
            _socket.ClosedPort           += SocketPortClosed;
            _socket.OpeningPort          += SocketOpeningPort;
            _socket.WaitingConnection    += SocketWaitingConnection;
            _socket.BeginningFileReceipt += SocketBeginningFileReceipt;
            _socket.ErrorEncountered     += SocketExceptionEncountered;

            // subscribe to event to receive message through subscription
            _genericSubscriptionQueue.MessageReceived += GenericSubscriptionQueue_MessageReceived;
        }