Пример #1
0
 public Runner(IFeedCmsProductArchiveEntryService feedCmsProductArciveEntryService, IFeedRuleService feedRuleService, IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService)
 {
     _feedCmsProductArciveEntryService = feedCmsProductArciveEntryService;
     _feedRuleService       = feedRuleService;
     _indigoCategoryService = indigoCategoryService;
     _googleCategoryService = googleCategoryService;
 }
Пример #2
0
 public Runner(IFeedCmsProductArchiveEntryService feedCmsProductArchiveEntryService, IFeedRuleService feedRuleService, IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService, IOutputInstructionProcessor outputInstructionProcessor)
 {
     _feedCmsProductArchiveEntryServiceShared = feedCmsProductArchiveEntryService;
     _feedRuleService            = feedRuleService;
     _indigoCategoryService      = indigoCategoryService;
     _googleCategoryService      = googleCategoryService;
     _outputInstructionProcessor = outputInstructionProcessor;
 }
Пример #3
0
        public Builder(IGoogleCategoryService googleCategoryService, IIndigoCategoryService indigoCategoryService,
                       IInputDataProvider inputDataProvider, PathResolver pathResolver)
        {
            _googleCategoryService = googleCategoryService;
            _indigoCategoryService = indigoCategoryService;
            _inputDataProvider     = inputDataProvider;
            _pathResolver          = pathResolver;

            _counters = new Counters.Counters();
        }
            private IndigoBreadcrumbDataRetriever(IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService, ILogger log)
            {
                _indigoCategoriesByBrowseCategoryId = new ConcurrentDictionary <int, List <IIndigoBreadcrumbCategory> >();
                _indigoCategoriesByIndigoCategoryId = new ConcurrentDictionary <int, IIndigoBreadcrumbCategory>();
                _topLevelIndigoCategories           = new ConcurrentDictionary <int, IIndigoBreadcrumbCategory>();
                _excludedBrowseCategoryIds          = new List <int>();
                _indigoCategoryService = indigoCategoryService;
                _googleCategoryService = googleCategoryService;
                _log = log;

                LoadData();
            }
Пример #5
0
 public Builder(IGoogleCategoryService googleCategoryService, PathResolver pathResolver)
 {
     _googleCategoryService = googleCategoryService;
     _pathResolver          = pathResolver;
 }
Пример #6
0
 // Mock constructor
 public Builder(IGoogleCategoryService googleCategoryService, PathResolver pathResolver, Func <TextReader> createReader)
     : this(googleCategoryService, pathResolver)
 {
     _createReader = createReader;
 }
Пример #7
0
 public Mapper(IGoogleCategoryService googleCategoryService, IIndigoCategoryService indigoCategoryService)
 {
     _googleCategoryService      = googleCategoryService;
     _indigoCategoryServiceProxy = new IndigoCategoryServiceProxy(indigoCategoryService);
 }
Пример #8
0
 public FeedGeneratorIndigoCategoryService(IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService, ILogger log)
 {
     _log = log;
     _feedGeneratorIndigoBreadcrumbRepository = new FeedGeneratorIndigoBreadcrumbRepository(indigoCategoryService, googleCategoryService, log);
     _indigoBreadcrumbService = new IndigoBreadcrumbService(_feedGeneratorIndigoBreadcrumbRepository);
     _indigoCategoryService   = indigoCategoryService;
 }
            public static IndigoBreadcrumbDataRetriever GetInstance(IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService, ILogger log)
            {
                if (_instance != null)
                {
                    return(_instance);
                }
                lock (SyncRoot)
                {
                    if (_instance == null)
                    {
                        _instance = new IndigoBreadcrumbDataRetriever(indigoCategoryService, googleCategoryService, log);
                    }
                }

                return(_instance);
            }
 public FeedGeneratorIndigoBreadcrumbRepository(IIndigoCategoryService indigoCategoryService, IGoogleCategoryService googleCategoryService, ILogger log)
 {
     _indigoBreadcrumbDataRetriever = IndigoBreadcrumbDataRetriever.GetInstance(indigoCategoryService, googleCategoryService, log);
     _log = log;
 }