Esempio n. 1
0
 public CommonController(IWebHelper webHelper,
     INoticeService noticeService,
     LocalizationSettings localizationSettings,
     ILanguageService languageService,
     ICurrentActivity currentActivity,
     ICacheManager cacheManager)
 {
     _webHelper = webHelper;
     _noticeService = noticeService;
     _localizationSettings = localizationSettings;
     _languageService = languageService;
     _currentActivity = currentActivity;
     _cacheManager = cacheManager;
 }
 public WebCurrentActivity(HttpContextBase httpContext,
     IAccountService accountService,
     IAuthenticationService authenticationService,
     ILanguageService languageService,
     LocalizationSettings localizationSettings,
     IWebHelper webHelper)
 {
     this._httpContext = httpContext;
     this._accountService = accountService;
     this._authenticationService = authenticationService;
     this._languageService = languageService;
     this._localizationSettings = localizationSettings;
     this._webHelper = webHelper;
 }
Esempio n. 3
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="languageRepository">Language repository</param>
 /// <param name="accountService">Account 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,
     IAccountService accountService,
     ISettingService settingService,
     LocalizationSettings localizationSettings/*,
     IEventPublisher eventPublisher*/)
 {
     this._cacheManager = cacheManager;
     this._languageRepository = languageRepository;
     this._accountService = accountService;
     this._settingService = settingService;
     this._localizationSettings = localizationSettings;
     //this._eventPublisher = eventPublisher;
 }
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     IAccountRegistrationService accountRegistrationService,
     ILocalizationService localizationService,
     ICurrentActivity currentActivity, AccountSettings accountSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._accountRegistrationService = accountRegistrationService;
     this._localizationService = localizationService;
     this._currentActivity = currentActivity;
     this._accountSettings = accountSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="logger">Logger</param>
 /// <param name="currentActivity">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="context">Database Context</param>
 /// <param name="utilitySettings">Common settings</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="eventPublisher">Event published</param>
 public LocalizationService(ICacheManager staticCacheManager,
     /*ILogger logger,*/ ICurrentActivity currentActivity,
     IRepository<LocaleStringResource> lsrRepository,
     ILanguageService languageService,
     IDataProvider dataProvider, IContext context, UtilitySettings utilitySettings,
     LocalizationSettings localizationSettings/*, IEventPublisher eventPublisher*/)
 {
     this._cacheManager = staticCacheManager;
     //this._logger = logger;
     this._currentActivity = currentActivity;
     this._lsrRepository = lsrRepository;
     this._languageService = languageService;
     this._dataProvider = dataProvider;
     this._context = context;
     this._utilitySettings = utilitySettings;
     this._dataProvider = dataProvider;
     this._context = context;
     this._utilitySettings = utilitySettings;
     this._localizationSettings = localizationSettings;
     //this._eventPublisher = eventPublisher;
 }