Example #1
0
        public WebWorkContext(HttpContextBase httpContext,
            IUserService userService,
            ILanguageService languageService,
            ICurrencyService currencyService,
            ICompanyContext companyContext,
            IGenericAttributeService genericAttributeService,
            IAuthenticationService authenticationService,
            LocalizationSettings localizationSettings)
        {
            this._httpContext = httpContext;
            this._userService = userService;
            this._languageService = languageService;
            this._currencyService = currencyService;
            this._companyContext = companyContext;
            this._authenticationService = authenticationService;
            this._genericAttributeService = genericAttributeService;

            this._localizationSettings = localizationSettings;
        }
 /// <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,
     ILogger logger, IWorkContext workContext,
     IRepository<LocaleStringResource> lsrRepository,
     ILanguageService languageService,
     IDataProvider dataProvider, IDbContext dbContext, CommonSettings commonSettings,
     LocalizationSettings localizationSettings, IEventPublisher eventPublisher)
 {
     this._cacheManager = cacheManager;
     this._logger = logger;
     this._workContext = workContext;
     this._lsrRepository = lsrRepository;
     this._languageService = languageService;
     this._dataProvider = dataProvider;
     this._dbContext = dbContext;
     this._commonSettings = commonSettings;
     this._dataProvider = dataProvider;
     this._dbContext = dbContext;
     this._commonSettings = commonSettings;
     this._localizationSettings = localizationSettings;
     this._eventPublisher = eventPublisher;
 }
        public AccountController(
           IWorkContext workContext,
           ICompanyContext companyContext,
           IWebHelper webHelper,
           
           IAuthenticationService authenticationService,
           IUserRegistrationService userRegistrationService,
           ILocalizationService localizationService,
           IDateTimeHelper dateTimeHelper,

           IUserService userService,
           IUserActivityService userActivityService,

           IBusinessPartnerService bpService,

           UserSettings userSettings,
           LocalizationSettings localizationSettings,
           CaptchaSettings captchaSettings,
           DateTimeSettings dateTimeSettings)
        {
            this._workContext = workContext;
            this._companyContext = companyContext;
            this._webHelper = webHelper;

            this._authenticationService = authenticationService;
            this._userRegistrationService = userRegistrationService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;

            this._userService = userService;
            this._userActivityService = userActivityService;
            this._bpService = bpService;

            this._userSettings = userSettings;
            this._dateTimeSettings = dateTimeSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
        }