예제 #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>();
 }