Exemple #1
0
 public PredefinedGuideService(
     IFileManager fileManager,
     ILanguageManager languageManager
     )
 {
     _fileManager             = fileManager;
     _predefinedGuidesContent = GetPredefinedGuidesContent();
     _languageManager         = languageManager;
     _language = _languageManager.GetLang();
 }
Exemple #2
0
 public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
 {
     try
     {
         _language = _languageManager.GetLang();
         CultureInfo.CurrentUICulture = new CultureInfo(_language);
     }
     catch (CultureNotFoundException)
     {
     }
     return(base.OnActionExecutionAsync(context, next));
 }
Exemple #3
0
 private void setLanguage()
 {
     _language = _languageManager.GetLang();
 }