コード例 #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)
 {
 }
コード例 #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)
 {
 }
コード例 #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();
 }
コード例 #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;
        }
コード例 #5
0
 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;
 }
コード例 #6
0
 public NotificationMessageController(
     INotificationMessageService notificationMessage,
     IStandardMessageService standardMessageService, IUnitOfWork unitOfWorkAsync)
     : base()
 {
     _notificationMessageService = notificationMessage;
     _unitOfWorkAsync            = unitOfWorkAsync;
 }
コード例 #7
0
 public NotificationController(INotificationMessageService notificationMessageService, IUnitOfWork unitOfWorkAsync,
                               ISettingsService settingsService, IBeaconService beaconService)
 {
     _notificationMessageService = notificationMessageService;
     _settingsService            = settingsService;
     _beaconService   = beaconService;
     _unitOfWorkAsync = unitOfWorkAsync;
 }
コード例 #8
0
 public NotificationSender(INotificationTemplateRenderer notificationTemplateRender
                           , INotificationMessageService notificationMessageService
                           , ILogger <NotificationSender> logger
                           , INotificationMessageSenderProviderFactory notificationMessageAccessor)
 {
     _notificationTemplateRender  = notificationTemplateRender;
     _notificationMessageService  = notificationMessageService;
     _notificationMessageAccessor = notificationMessageAccessor;
     _logger = logger;
 }
コード例 #9
0
 public NotificationSender(INotificationTemplateRenderer notificationTemplateRender
                           , INotificationMessageService notificationMessageService
                           , INotificationMessageSenderFactory notificationMessageAccessor
                           , IBackgroundJobClient jobClient)
 {
     _notificationTemplateRender       = notificationTemplateRender;
     _notificationMessageService       = notificationMessageService;
     _notificationMessageSenderFactory = notificationMessageAccessor;
     _jobClient = jobClient;
 }
コード例 #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)
 { }
コード例 #11
0
 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;
 }
コード例 #12
0
ファイル: GatewayEvents.cs プロジェクト: drpeck/Merchello
        /// <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();
            }
        }
コード例 #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;
 }
コード例 #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();
            }
        }
コード例 #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);
        }
コード例 #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;
 }
コード例 #17
0
ファイル: GatewayEvents.cs プロジェクト: vonbv/Merchello
        /// <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();
            }
        }
コード例 #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();
            }
        }
コード例 #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;
 }
コード例 #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;
        }
コード例 #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;
        }
コード例 #22
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;
 }
コード例 #23
0
 public NotificationMessageSearchService(Func <INotificationRepository> repositoryFactory, INotificationMessageService messageService)
 {
     _repositoryFactory = repositoryFactory;
     _messageService    = messageService;
 }
コード例 #24
0
 public TestController(INotificationService notificationService, INotificationMessageService notificationMessageService)
 {
     _notificationService        = notificationService;
     _notificationMessageService = notificationMessageService;
 }
コード例 #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)
 {
 }
コード例 #26
0
 public NotificationController(INotificationMessageService notificationMessageService, IUserService userService)
 {
     _notificationMessageService = notificationMessageService;
     _userService = userService;
 }
コード例 #27
0
 public NotificationMessagesController(INotificationMessageService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
コード例 #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;
 }
コード例 #29
0
 public EmailingJob(INotificationMessageService messageService, IOwnerInfoService ownerInfoService, IVehicleInfoService vehicleInfoService)
 {
     _messageService     = messageService;
     _ownereInfoService  = ownerInfoService;
     _vehicleInfoService = vehicleInfoService;
 }