Пример #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="languageRepository">Language repository</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="settingService">Setting service</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="eventPublisher">Event published</param>
 public LanguageService(ICacheManager cacheManager,
     IRepository<Language> languageRepository,
     IStoreMappingService storeMappingService,
     ISettingService settingService,
     LocalizationSettings localizationSettings,
     ISignals signals) {
     this._cacheManager = cacheManager;
     this._languageRepository = languageRepository;
     this._storeMappingService = storeMappingService;
     this._settingService = settingService;
     this._localizationSettings = localizationSettings;
     this._signals = signals;
 }
Пример #2
0
 public WebWorkContext(HttpContextBase httpContext,
     IUserService userService,
     IStoreContext storeContext,
     IAuthenticationService authenticationService,
     ILanguageService languageService,
     IGenericAttributeService genericAttributeService,
     LocalizationSettings localizationSettings,
     IStoreMappingService storeMappingService)
 {
     this._httpContext = httpContext;
     this._userService = userService;
     this._storeContext = storeContext;
     this._authenticationService = authenticationService;
     this._languageService = languageService;
     this._genericAttributeService = genericAttributeService;
     this._localizationSettings = localizationSettings;
     this._storeMappingService = storeMappingService;
 }
Пример #3
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="cacheManager">Cache manager</param>
        /// <param name="logger">Logger</param>
        /// <param name="workContext">Work context</param>
        /// <param name="lsrRepository">Locale string resource repository</param>
        /// <param name="languageService">Language service</param>
        /// <param name="dataProvider">Data provider</param>
        /// <param name="dbContext">Database Context</param>
        /// <param name="commonSettings">Common settings</param>
        /// <param name="localizationSettings">Localization settings</param>
        /// <param name="eventPublisher">Event published</param>
        public LocalizationService(ICacheManager cacheManager,
            ISignals signals, IWorkContext workContext,
            IRepository<LocaleStringResource> lsrRepository,
            ILanguageService languageService,
            IDataProvider dataProvider, IDbContext dbContext,
            LocalizationSettings localizationSettings) {
            this._cacheManager = cacheManager;
            this._signals = signals;
            this._workContext = workContext;
            this._lsrRepository = lsrRepository;
            this._languageService = languageService;
            this._dataProvider = dataProvider;
            this._dbContext = dbContext;
            this._dataProvider = dataProvider;
            this._dbContext = dbContext;
            this._localizationSettings = localizationSettings;

            Logger = NullLogger.Instance;
        }