Пример #1
0
 public SendAction(
     IProductService productService,
     IXmlProductService xmlProductService,
     IQPNotificationService notificationService)
 {
     _productService      = productService;
     _xmlProductService   = xmlProductService;
     _notificationService = notificationService;
 }
Пример #2
0
        public XmlProductServiceProfiler(IXmlProductService xmlProductService)
        {
            if (xmlProductService == null)
            {
                throw new ArgumentNullException("xmlProductService");
            }

            _xmlProductService = xmlProductService;
            Service            = _xmlProductService.GetType().Name;
        }
Пример #3
0
 public XmlProductFormatter(
     IXmlProductService xmlProductService,
     IContentDefinitionService contentDefinitionService,
     ISettingsService settingsService,
     IProductContentResolver productContentResolver,
     IHttpContextAccessor httpContextAccessor,
     IActionContextAccessor actionContextAccessor
     )
 {
     _xmlProductService        = xmlProductService;
     _contentDefinitionService = contentDefinitionService;
     _settingsService          = settingsService;
     _productContentResolver   = productContentResolver;
     _httpContext   = httpContextAccessor?.HttpContext;
     _actionContext = actionContextAccessor?.ActionContext;
 }
Пример #4
0
 public PublishAction(
     IArticleService articleService,
     IFieldService fieldService,
     IProductService productservice,
     Func <ITransaction> createTransaction,
     IQPNotificationService notificationService,
     IXmlProductService xmlProductService,
     IFreezeService freezeService,
     IValidationService validationService
     )
     : base(articleService, fieldService, productservice, createTransaction)
 {
     NotificationService = notificationService;
     XmlProductService   = xmlProductService;
     FreezeService       = freezeService;
     ValidationService   = validationService;
     ValidationErrors    = new ConcurrentDictionary <int, string>();
     ProductIds          = new List <int>();
 }