Пример #1
0
 public CustomerController(IAuthenticationService authenticationService,
     ILocalizationService localizationService,
      IWorkContext workContext,
      ICustomerService customerService,
      ICustomerRegistrationService customerRegistrationService,
     CustomerSettings customerSettings,
      IAddressService addressService,
      IWebHelper webHelper,
      LocalizationSettings localizationSettings, 
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ICustomerActivityService customerActivityService,
     DateTimeSettings dateTimeSettings,
     IDateTimeHelper dateTimeHelper,
     IGenericAttributeService genericAttributeService,
     IPermissionService permissionService)
 {
     this._authenticationService = authenticationService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._customerRegistrationService = customerRegistrationService;
     this._customerService = customerService;
     this._customerSettings = customerSettings;
     this._addressService = addressService;
     this._webHelper = webHelper;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerActivityService = customerActivityService;
     this._dateTimeSettings = dateTimeSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._genericAttributeService = genericAttributeService;
 }
Пример #2
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,
     ISettingService settingService,
     LocalizationSettings localizationSettings,
     IEventPublisher eventPublisher)
 {
     this._cacheManager = cacheManager;
     this._languageRepository = languageRepository;
     this._settingService = settingService;
     this._localizationSettings = localizationSettings;
     this._eventPublisher = eventPublisher;
 }
Пример #3
0
 public WebWorkContext(HttpContextBase httpContext,
     ICustomerService customerService,
     IAuthenticationService authenticationService,
     ILanguageService languageService,
     LocalizationSettings localizationSettings,
     IUserAgentHelper userAgentHelper,
     IGenericAttributeService genericAttributeService)
 {
     this._httpContext = httpContext;
     this._customerService = customerService;
     this._authenticationService = authenticationService;
     this._languageService = languageService;
     this._localizationSettings = localizationSettings;
     this._userAgentHelper = userAgentHelper;
     this._genericAttributeService = genericAttributeService;
 }
Пример #4
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     ICustomerRegistrationService customerRegistrationService, 
     ICustomerActivityService customerActivityService, ILocalizationService localizationService,
     IWorkContext workContext, CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService = customerActivityService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._localizationSettings = localizationSettings;
 }
Пример #5
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,
     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;
 }