Пример #1
0
 public Builder(IIndigoCategoryService indigoCategoryService, IIndigoBrandService indigoBrandService, IFeedCmsProductArchiveEntryService feedCmsProductArciveEntryService, IDefaultRecosGeneratorService defaultRecosGeneratorService)
 {
     _indigoCategoryService            = indigoCategoryService;
     _indigoBrandService               = indigoBrandService;
     _feedCmsProductArciveEntryService = feedCmsProductArciveEntryService;
     _defaultRecosGeneratorService     = defaultRecosGeneratorService;
 }
Пример #2
0
 public Runner(IFeedCmsProductArchiveEntryService feedCmsProductArciveEntryService, IFeedRuleService feedRuleService, IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService)
 {
     _feedCmsProductArciveEntryService = feedCmsProductArciveEntryService;
     _feedRuleService       = feedRuleService;
     _indigoCategoryService = indigoCategoryService;
     _googleCategoryService = googleCategoryService;
 }
 public RunnerHelper(IFeedRuleService feedRuleService, IFeedGeneratorIndigoCategoryService feedGeneratorIndigoCategoryService, IFeedCmsProductArchiveEntryService feedCmsProductArciveEntryService, ILogger log)
 {
     _feedRuleService = feedRuleService;
     _feedGeneratorIndigoCategoryService = feedGeneratorIndigoCategoryService;
     _feedCmsProductArciveEntryService   = feedCmsProductArciveEntryService;
     _log = log;
 }
 public FeedGeneratorCmsDataService(IFeedCmsProductArchiveEntryService feedCmsProductArciveEntryService, DateTime?fromTime)
 {
     _feedCmsProductArchiveEntryService = feedCmsProductArciveEntryService;
     _fromTime                    = fromTime;
     _productListSkus             = new ConcurrentDictionary <long, IEnumerable <string> >();
     _permanentCmsProductListSkus = new ConcurrentDictionary <PermanentCmsProductListIdCacheKey, IEnumerable <string> >();
 }
Пример #5
0
 public Runner(IFeedCmsProductArchiveEntryService feedCmsProductArchiveEntryService, IFeedRuleService feedRuleService, IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService, IOutputInstructionProcessor outputInstructionProcessor)
 {
     _feedCmsProductArchiveEntryServiceShared = feedCmsProductArchiveEntryService;
     _feedRuleService            = feedRuleService;
     _indigoCategoryService      = indigoCategoryService;
     _googleCategoryService      = googleCategoryService;
     _outputInstructionProcessor = outputInstructionProcessor;
 }
Пример #6
0
 public RunnerHelper(IFeedRuleService feedRuleService, IFeedGeneratorIndigoCategoryService feedGeneratorIndigoCategoryService, IFeedCmsProductArchiveEntryService feedCmsProductArciveEntryService, ILogger log, bool allowRuleOptimizations, bool allowRuleEntryRemovals, bool allowIEnumerableRuleEvaluations)
 {
     _feedRuleService = feedRuleService;
     _feedGeneratorIndigoCategoryService = feedGeneratorIndigoCategoryService;
     _feedCmsProductArciveEntryService   = feedCmsProductArciveEntryService;
     _log = log;
     _allowRuleOptimizations          = allowRuleOptimizations;
     _allowRuleEntryRemovals          = allowRuleEntryRemovals;
     _allowIEnumerableRuleEvaluations = allowIEnumerableRuleEvaluations;
 }
Пример #7
0
        public void Initialize(IExecutionLogLogger executionLogLogger, int plaFeedId, bool isIncremental, DateTime?fromTime, DateTime?effectiveFromTime, DateTime executionTime, bool isPseudoFullRun)
        {
            _executionLogLogger = executionLogLogger;
            _isIncrementalRun   = isIncremental;
            _isPseudoFullRun    = isPseudoFullRun;
            _effectiveFromTime  = effectiveFromTime;

            // Instantiate the IFeedGeneratorIndigoCategoryService
            _feedGeneratorCategoryService = new FeedGeneratorIndigoCategoryService(_indigoCategoryService, _googleCategoryService, Log);

            // Instantiate the "caching" cms data services
            _feedCmsProductArchiveEntryService     = new FeedGeneratorCmsDataService(_feedCmsProductArchiveEntryServiceShared, null);
            _pastFeedCmsProductArchiveEntryService = new FeedGeneratorCmsDataService(_feedCmsProductArchiveEntryServiceShared, fromTime);

            // First get rules associated with this feed
            _productDataService = new ProductDataService(null, _feedGeneratorCategoryService, _feedRuleService, _feedCmsProductArchiveEntryService, _feedGeneratorCategoryService, _pastFeedCmsProductArchiveEntryService);
        }