Ejemplo n.º 1
0
 internal GatewayProviderService(
     IDatabaseUnitOfWorkProvider provider,
     RepositoryFactory repositoryFactory,
     ILogger logger,
     IShipMethodService shipMethodService,
     IShipRateTierService shipRateTierService,
     IShipCountryService shipCountryService,
     IInvoiceService invoiceService,
     IOrderService orderService,
     ITaxMethodService taxMethodService,
     IPaymentService paymentService,
     IPaymentMethodService paymentMethodService,
     INotificationMethodService notificationMethodService,
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(
         provider,
         repositoryFactory,
         logger,
         new TransientMessageFactory(),
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GatewayProviderService"/> class.
 /// </summary>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="shipMethodService">
 /// The ship method service.
 /// </param>
 /// <param name="shipRateTierService">
 /// The ship rate tier service.
 /// </param>
 /// <param name="shipCountryService">
 /// The ship country service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice service.
 /// </param>
 /// <param name="orderService">
 /// The order service.
 /// </param>
 /// <param name="taxMethodService">
 /// The tax method service.
 /// </param>
 /// <param name="paymentService">
 /// The payment service.
 /// </param>
 /// <param name="paymentMethodService">
 /// The payment method service.
 /// </param>
 /// <param name="notificationMethodService">
 /// The notification method service.
 /// </param>
 /// <param name="notificationMessageService">
 /// The notification message service.
 /// </param>
 /// <param name="warehouseService">
 /// The warehouse service.
 /// </param>
 internal GatewayProviderService(
     ILogger logger,
     RepositoryFactory repositoryFactory,
     IShipMethodService shipMethodService,
     IShipRateTierService shipRateTierService,
     IShipCountryService shipCountryService,
     IInvoiceService invoiceService,
     IOrderService orderService,
     ITaxMethodService taxMethodService,
     IPaymentService paymentService,
     IPaymentMethodService paymentMethodService,
     INotificationMethodService notificationMethodService,
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(
         new PetaPocoUnitOfWorkProvider(logger),
         repositoryFactory,
         logger,
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
Ejemplo n.º 3
0
 public RevenueRecognitionController(
     IRevenueRecognitionService revenueRecognitionService,
     ICommonService commonService,
     IMapper mapper,
     IContractsService contratRefactorService,
     INotificationTemplatesService notificationTemplatesService,
     INotificationMessageService notificationMessageService,
     IUrlHelper urlHelper,
     IUserService userService,
     IContractsService contractRefactorService,
     INotificationBatchService notificationBatchService,
     IContractModificationService contractModificationService,
     IConfiguration configuration,
     IGenericNotificationService genericNotificationService,
     IResourceAttributeValueService resourceAttributeValueService)
 {
     _revenueRecognitionService     = revenueRecognitionService;
     _commonService                 = commonService;
     _contractRefactorService       = contractRefactorService;
     _notificationTemplatesService  = notificationTemplatesService;
     _notificationMessageService    = notificationMessageService;
     _resourceAttributeValueService = resourceAttributeValueService;
     _notificationBatchService      = notificationBatchService;
     _urlHelper     = urlHelper;
     _userService   = userService;
     _configuration = configuration;
     _genericNotificationService = genericNotificationService;
     _mapper                      = mapper;
     _eventLogger                 = NLogConfig.EventLogger.GetCurrentClassLogger();
     _contractRefactorService     = contractRefactorService;
     _contractModificationService = contractModificationService;
     _logger                      = LogManager.GetCurrentClassLogger();
 }
Ejemplo n.º 4
0
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, ILogger logger, IEventMessagesFactory eventMessagesFactory,
                                        IShipMethodService shipMethodService,
                                        IShipRateTierService shipRateTierService, IShipCountryService shipCountryService,
                                        IInvoiceService invoiceService, IOrderService orderService,
                                        ITaxMethodService taxMethodService, IPaymentService paymentService, IPaymentMethodService paymentMethodService,
                                        INotificationMethodService notificationMethodService, INotificationMessageService notificationMessageService, IWarehouseService warehouseService)
            : base(provider, repositoryFactory, logger, eventMessagesFactory)
        {
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");
            Mandate.ParameterNotNull(notificationMethodService, "notificationMethodService");
            Mandate.ParameterNotNull(notificationMessageService, "notificationMessageService");
            Mandate.ParameterNotNull(warehouseService, "warehouseService");

            _shipMethodService          = shipMethodService;
            _shipRateTierService        = shipRateTierService;
            _shipCountryService         = shipCountryService;
            _invoiceService             = invoiceService;
            _orderService               = orderService;
            _taxMethodService           = taxMethodService;
            _paymentService             = paymentService;
            _paymentMethodService       = paymentMethodService;
            _notificationMethodService  = notificationMethodService;
            _notificationMessageService = notificationMessageService;
            _warehouseService           = warehouseService;
        }
 public ContractCloseOutController(IQuestionaireUserAnswerService questionaireUserAnswerService,
                                   IQuestionaireMasterService questionaireMasterService,
                                   IQuestionaireManagerTypeService questionaireManagerTypeService,
                                   IContractCloseApprovalService contractCloseApprovalService,
                                   IResourceAttributeValueService resourceAttributeValueService,
                                   INotificationTemplatesService notificationTemplatesService,
                                   INotificationBatchService notificationBatchService,
                                   IContractsService contractService,
                                   IUserService userService,
                                   IGenericNotificationService genericNotificationService,
                                   INotificationMessageService notificationMessageService,
                                   IConfiguration configuration,
                                   IMapper mapper)
 {
     _questionaireUserAnswerService = questionaireUserAnswerService;
     _questionaireMasterService     = questionaireMasterService;
     _configuration = configuration;
     _contractCloseApprovalService   = contractCloseApprovalService;
     _questionaireManagerTypeService = questionaireManagerTypeService;
     _contractService               = contractService;
     _logger                        = NLog.LogManager.GetCurrentClassLogger();
     _eventLogger                   = NLogConfig.EventLogger.GetCurrentClassLogger();
     _notificationBatchService      = notificationBatchService;
     _notificationTemplatesService  = notificationTemplatesService;
     _userService                   = userService;
     _genericNotificationService    = genericNotificationService;
     _notificationMessageService    = notificationMessageService;
     _resourceAttributeValueService = resourceAttributeValueService;
     _mapper                        = mapper;
 }
 public NotificationMessageController(
     INotificationMessageService notificationMessage,
     IStandardMessageService standardMessageService, IUnitOfWork unitOfWorkAsync)
     : base()
 {
     _notificationMessageService = notificationMessage;
     _unitOfWorkAsync            = unitOfWorkAsync;
 }
 public NotificationController(INotificationMessageService notificationMessageService, IUnitOfWork unitOfWorkAsync,
                               ISettingsService settingsService, IBeaconService beaconService)
 {
     _notificationMessageService = notificationMessageService;
     _settingsService            = settingsService;
     _beaconService   = beaconService;
     _unitOfWorkAsync = unitOfWorkAsync;
 }
 public NotificationSender(INotificationTemplateRenderer notificationTemplateRender
                           , INotificationMessageService notificationMessageService
                           , ILogger <NotificationSender> logger
                           , INotificationMessageSenderProviderFactory notificationMessageAccessor)
 {
     _notificationTemplateRender  = notificationTemplateRender;
     _notificationMessageService  = notificationMessageService;
     _notificationMessageAccessor = notificationMessageAccessor;
     _logger = logger;
 }
Ejemplo n.º 9
0
 public NotificationSender(INotificationTemplateRenderer notificationTemplateRender
                           , INotificationMessageService notificationMessageService
                           , INotificationMessageSenderFactory notificationMessageAccessor
                           , IBackgroundJobClient jobClient)
 {
     _notificationTemplateRender       = notificationTemplateRender;
     _notificationMessageService       = notificationMessageService;
     _notificationMessageSenderFactory = notificationMessageAccessor;
     _jobClient = jobClient;
 }
Ejemplo n.º 10
0
  internal GatewayProviderService(RepositoryFactory repositoryFactory, IShipMethodService shipMethodService, 
      IShipRateTierService shipRateTierService, IShipCountryService shipCountryService, 
      IInvoiceService invoiceService, IOrderService orderService,
      ITaxMethodService taxMethodService, IPaymentService paymentService, IPaymentMethodService paymentMethodService,
      INotificationMethodService notificationMethodService, INotificationMessageService notificationMessageService, IWarehouseService warehouseService)
     : this(new PetaPocoUnitOfWorkProvider(), repositoryFactory, shipMethodService, 
      shipRateTierService, shipCountryService, invoiceService, orderService, taxMethodService,
      paymentService, paymentMethodService,
      notificationMethodService, notificationMessageService, warehouseService)
 { }
 public GenericNotificationService(INotificationTemplatesService notificationTemplatesService,
                                   INotificationMessageService notificationMessageService, INotificationBatchService notificationBatchService,
                                   IContractsService contractsService, IUserService userService, IEmailSender emailSender)
 {
     _notificationTemplatesService = notificationTemplatesService;
     _notificationMessageService   = notificationMessageService;
     _notificationBatchService     = notificationBatchService;
     _contractsService             = contractsService;
     _emailSender = emailSender;
     _userService = userService;
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Clears messages from NotificationMonitors cache.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="saveEventArgs">
        /// The save event args.
        /// </param>
        private static void NotificationMessageServiceOnSaved(INotificationMessageService sender, SaveEventArgs<INotificationMessage> saveEventArgs)
        {
            var resolver = MonitorResolver.HasCurrent ? MonitorResolver.Current : null;
            if (resolver == null) return;

            var monitors = resolver.GetAllMonitors();

            foreach (var implements in monitors.OfType<INotificationMonitorBase>())
            {
                implements.RebuildCache();
            }
        }
Ejemplo n.º 13
0
 public NotificationsController(INotificationSearchService notificationSearchService
                                , INotificationService notificationService
                                , INotificationTemplateRenderer notificationTemplateRender
                                , INotificationSender notificationSender
                                , INotificationMessageSearchService notificationMessageSearchService, INotificationMessageService notificationMessageService)
 {
     _notificationSearchService        = notificationSearchService;
     _notificationService              = notificationService;
     _notificationTemplateRender       = notificationTemplateRender;
     _notificationSender               = notificationSender;
     _notificationMessageSearchService = notificationMessageSearchService;
     _notificationMessageService       = notificationMessageService;
 }
Ejemplo n.º 14
0
        private void NotificationMessageServiceOnSaved(INotificationMessageService sender, SaveEventArgs<INotificationMessage> saveEventArgs)
        {
            // TODO target this a bit better
            if (!MonitorResolver.HasCurrent) LogHelper.Info<NotificationMonitorEvents>("MonitorResolver singleton has not be set");

            var monitors = MonitorResolver.Current.GetAllMonitors().Where(x => x is INotificationMonitorBase);

            foreach (var monitor in monitors)
            {
                // TODO - this will need to be a distributed call
                ((INotificationMonitorBase)monitor).RebuildCache();
            }
        }
Ejemplo n.º 15
0
        public NotificationSystemSubscriber(
            ILogFactory logFactory,
            INotificationMessageService service,
            string connectionString)
        {
            _settings = RabbitMqSubscriptionSettings.ForSubscriber(connectionString,
                                                                   _exchangeName,
                                                                   _queueNameSuffix)
                        .MakeDurable();

            _logFactory = logFactory;
            _service    = service;
            _log        = _logFactory.CreateLog(this);
        }
Ejemplo n.º 16
0
 public NotificationService(
     INotificationMessageService notificationMessageService,
     IUserService userService,
     IContractsService contractsService,
     IJobRequestService jobRequestService,
     INotificationTemplatesService notificationTemplateService,
     IEmailSender emailSender)
 {
     _notificationMessageService = notificationMessageService;
     _userService                  = userService;
     _emailSender                  = emailSender;
     _contractRefactorService      = contractsService;
     _jobRequestService            = jobRequestService;
     _notificationTemplatesService = notificationTemplateService;
 }
Ejemplo n.º 17
0
        /// <summary>
        /// Clears messages from NotificationMonitors cache.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="saveEventArgs">
        /// The save event args.
        /// </param>
        private static void NotificationMessageServiceOnSaved(INotificationMessageService sender, SaveEventArgs <INotificationMessage> saveEventArgs)
        {
            var resolver = MonitorResolver.HasCurrent ? MonitorResolver.Current : null;

            if (resolver == null)
            {
                return;
            }

            var monitors = resolver.GetAllMonitors();

            foreach (var implements in monitors.OfType <INotificationMonitorBase>())
            {
                implements.RebuildCache();
            }
        }
Ejemplo n.º 18
0
        /// <summary>
        /// The notification message service on saved.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="saveEventArgs">
        /// The save event args.
        /// </param>
        private void NotificationMessageServiceOnSaved(INotificationMessageService sender, SaveEventArgs <INotificationMessage> saveEventArgs)
        {
            // TODO target this a bit better
            if (!MonitorResolver.HasCurrent)
            {
                LogHelper.Info <NotificationMonitorEvents>("MonitorResolver singleton has not be set");
            }

            var monitors = MonitorResolver.Current.GetAllMonitors().Where(x => x is INotificationMonitorBase);

            foreach (var monitor in monitors)
            {
                // TODO - this will need to be a distributed call
                ((INotificationMonitorBase)monitor).RebuildCache();
            }
        }
Ejemplo n.º 19
0
 public InboxController(
     INotificationBatchService notificationBatchService,
     INotificationMessageService notificationMessageService,
     IDistributionListService distributionListService,
     INotificationTemplatesService notificationTemplatesService,
     INotificationService notificationService,
     IUserService userService,
     IConfiguration configuration
     )
 {
     _notificationBatchService     = notificationBatchService;
     _notificationMessageService   = notificationMessageService;
     _distributionListService      = distributionListService;
     _notificationTemplatesService = notificationTemplatesService;
     _notificationService          = notificationService;
     _userService   = userService;
     _configuration = configuration;
 }
Ejemplo n.º 20
0
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, 
            IShipMethodService shipMethodService, IShipRateTierService shipRateTierService, 
            IShipCountryService shipCountryService, 
            IInvoiceService invoiceService, 
            IOrderService orderService, 
            ITaxMethodService taxMethodService, 
            IPaymentService paymentService, 
            IPaymentMethodService paymentMethodService, 
            INotificationMethodService notificationMethodService, 
            INotificationMessageService notificationMessageService,
            IWarehouseService warehouseService)
        {
            Mandate.ParameterNotNull(provider, "provider");
            Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");
            Mandate.ParameterNotNull(notificationMethodService, "notificationMethodService");
            Mandate.ParameterNotNull(notificationMessageService, "notificationMessageService");
            Mandate.ParameterNotNull(warehouseService, "warehouseService");

            _uowProvider = provider;
            _repositoryFactory = repositoryFactory;
            _shipMethodService = shipMethodService;
            _shipRateTierService = shipRateTierService;
            _shipCountryService = shipCountryService;
            _invoiceService = invoiceService;
            _orderService = orderService;
            _taxMethodService = taxMethodService;
            _paymentService = paymentService;
            _paymentMethodService = paymentMethodService;
            _notificationMethodService = notificationMethodService;
            _notificationMessageService = notificationMessageService;
            _warehouseService = warehouseService;
        }
Ejemplo n.º 21
0
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory,
                                        IShipMethodService shipMethodService, IShipRateTierService shipRateTierService,
                                        IShipCountryService shipCountryService,
                                        IInvoiceService invoiceService,
                                        IOrderService orderService,
                                        ITaxMethodService taxMethodService,
                                        IPaymentService paymentService,
                                        IPaymentMethodService paymentMethodService,
                                        INotificationMethodService notificationMethodService,
                                        INotificationMessageService notificationMessageService)
        {
            Mandate.ParameterNotNull(provider, "provider");
            Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");
            Mandate.ParameterNotNull(notificationMethodService, "notificationMethodService");
            Mandate.ParameterNotNull(notificationMessageService, "notificationMessageService");

            _uowProvider                = provider;
            _repositoryFactory          = repositoryFactory;
            _shipMethodService          = shipMethodService;
            _shipRateTierService        = shipRateTierService;
            _shipCountryService         = shipCountryService;
            _invoiceService             = invoiceService;
            _orderService               = orderService;
            _taxMethodService           = taxMethodService;
            _paymentService             = paymentService;
            _paymentMethodService       = paymentMethodService;
            _notificationMethodService  = notificationMethodService;
            _notificationMessageService = notificationMessageService;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationGatewayApiController"/> class. 
 /// </summary>
 /// <param name="merchelloContext">The <see cref="IMerchelloContext"/></param>
 public NotificationGatewayApiController(IMerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _notificationContext = ((GatewayContext)MerchelloContext.Gateways).Notification;
     _notificationMessageService = ((ServiceContext)MerchelloContext.Services).NotificationMessageService;
 }
Ejemplo n.º 23
0
 public NotificationMessageSearchService(Func <INotificationRepository> repositoryFactory, INotificationMessageService messageService)
 {
     _repositoryFactory = repositoryFactory;
     _messageService    = messageService;
 }
Ejemplo n.º 24
0
 public TestController(INotificationService notificationService, INotificationMessageService notificationMessageService)
 {
     _notificationService        = notificationService;
     _notificationMessageService = notificationMessageService;
 }
Ejemplo n.º 25
0
 internal GatewayProviderService(
     IDatabaseUnitOfWorkProvider provider, 
     RepositoryFactory repositoryFactory, 
     ILogger logger, 
     IShipMethodService shipMethodService, 
     IShipRateTierService shipRateTierService, 
     IShipCountryService shipCountryService, 
     IInvoiceService invoiceService, 
     IOrderService orderService, 
     ITaxMethodService taxMethodService, 
     IPaymentService paymentService, 
     IPaymentMethodService paymentMethodService, 
     INotificationMethodService notificationMethodService, 
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(provider,
         repositoryFactory,
         logger,
         new TransientMessageFactory(),
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
Ejemplo n.º 26
0
 public NotificationController(INotificationMessageService notificationMessageService, IUserService userService)
 {
     _notificationMessageService = notificationMessageService;
     _userService = userService;
 }
Ejemplo n.º 27
0
 public NotificationMessagesController(INotificationMessageService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
Ejemplo n.º 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationGatewayApiController"/> class.
 /// </summary>
 /// <param name="merchelloContext">The <see cref="IMerchelloContext"/></param>
 public NotificationGatewayApiController(IMerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _notificationContext        = ((GatewayContext)MerchelloContext.Gateways).Notification;
     _notificationMessageService = ((ServiceContext)MerchelloContext.Services).NotificationMessageService;
 }
 public EmailingJob(INotificationMessageService messageService, IOwnerInfoService ownerInfoService, IVehicleInfoService vehicleInfoService)
 {
     _messageService     = messageService;
     _ownereInfoService  = ownerInfoService;
     _vehicleInfoService = vehicleInfoService;
 }