public CommonServices( IComponentContext container, IApplicationContext appContext, ICacheManager cacheManager, IRequestCache requestCache, SmartDbContext dbContext, IStoreContext storeContext, IWorkContext workContext, IWebHelper webHelper, IEventPublisher eventPublisher, Lazy <ISettingService> settings, ISettingFactory settingFactory, ILoggerFactory loggerFactory, Lazy <IActivityLogger> activityLogger, INotifier notifier, IChronometer chronometer) { _container = container; _appContext = appContext; _cacheManager = cacheManager; _requestCache = requestCache; _dbContext = dbContext; _storeContext = storeContext; _workContext = workContext; _webHelper = webHelper; _eventPublisher = eventPublisher; _settings = settings; _settingFactory = settingFactory; _loggerFactory = loggerFactory; _activityLogger = activityLogger; _notifier = notifier; _chronometer = chronometer; }
public SettingService(IRepository<Setting> repository , ISettingFactory factory ) { this.factory = factory; this.repository = repository; }
public RebuildXmlSitemapTask( IStoreContext storeContext, ILanguageService languageService, IXmlSitemapGenerator generator, ISettingFactory settingFactory) { _storeContext = storeContext; _languageService = languageService; _generator = generator; _settingFactory = settingFactory; }
public SettingsRegister([NotNull] IObjectRegister register, [NotNull] ISettingFactory settingFactory) { if (register == null) { throw new ArgumentNullException(nameof(register)); } if (settingFactory == null) { throw new ArgumentNullException(nameof(settingFactory)); } _register = register; _settingFactory = settingFactory; }
public LanguageService( ICacheManager cache, SmartDbContext db, ISettingFactory settingFactory, Lazy <LocalizationSettings> localizationSettings, IStoreContext storeContext) { _cache = cache; _db = db; _settingFactory = settingFactory; _localizationSettings = localizationSettings; _storeContext = storeContext; }
public XmlSitemapBuildContext(Store store, Language[] languages, ISettingFactory settingFactory, bool isSingleStoreMode) { Guard.NotNull(store, nameof(store)); Guard.NotEmpty(languages, nameof(languages)); Store = store; Languages = languages; Protocol = store.SupportsHttps() && store.ForceSslForAllPages ? "https" : "http"; _settingFactory = settingFactory; _isSingleStoreMode = isSingleStoreMode; RequestStoreId = _isSingleStoreMode ? 0 : store.Id; }
public CommonServices( IComponentContext container, IApplicationContext appContext, ICacheFactory cacheFactory, ICacheManager cacheManager, IRequestCache requestCache, SmartDbContext dbContext, IStoreContext storeContext, IWorkContext workContext, IWebHelper webHelper, IEventPublisher eventPublisher, ILocalizationService localization, Lazy <ISettingService> settings, ISettingFactory settingFactory, ILoggerFactory loggerFactory, Lazy <IActivityLogger> activityLogger, INotifier notifier, IPermissionService permissions, IChronometer chronometer, IDateTimeHelper dateTimeHelper, IMediaService mediaService, Lazy <IDisplayControl> displayControl, ICurrencyService currencyService) { _container = container; _appContext = appContext; _cacheFactory = cacheFactory; _cacheManager = cacheManager; _requestCache = requestCache; _dbContext = dbContext; _storeContext = storeContext; _workContext = workContext; _webHelper = webHelper; _eventPublisher = eventPublisher; _localization = localization; _settings = settings; _settingFactory = settingFactory; _loggerFactory = loggerFactory; _activityLogger = activityLogger; _notifier = notifier; _permissions = permissions; _chronometer = chronometer; _dateTimeHelper = dateTimeHelper; _mediaService = mediaService; _displayControl = displayControl; _currencyService = currencyService; }
public CurrencyService( SmartDbContext db, ILocalizationService localizationService, IProviderManager providerManager, IWorkContext workContext, CurrencySettings currencySettings, TaxSettings taxSettings, ISettingFactory settingFactory) { _db = db; _localizationService = localizationService; _providerManager = providerManager; _workContext = workContext; _currencySettings = currencySettings; _taxSettings = taxSettings; _settingFactory = settingFactory; }
public ShippingService( ICheckoutAttributeMaterializer checkoutAttributeMaterializer, ICartRuleProvider cartRuleProvider, ShippingSettings shippingSettings, IProviderManager providerManager, ISettingFactory settingFactory, IWorkContext workContext, SmartDbContext db) { _checkoutAttributeMaterializer = checkoutAttributeMaterializer; _cartRuleProvider = cartRuleProvider; _shippingSettings = shippingSettings; _providerManager = providerManager; _settingFactory = settingFactory; _workContext = workContext; _db = db; }
public SettingTransient(ISettingFactory <T> settingFactory) : base(settingFactory) { }
public Setting(ISettingFactory <T> settingFactory) { Ensure.IsNotNull(settingFactory, nameof(settingFactory)); _settingFactory = settingFactory; }
public SettingScoped(ISettingFactory <T> settingFactory) : base(settingFactory) { }