public LocalizationScriptManager(ILocalizationSourceManager localizationSourceManager)
 {
     _localizationSourceManager = localizationSourceManager;
     _cache = new ThreadSafeObjectCache<string>(new MemoryCache("__LocalizationScriptManager"), TimeSpan.FromDays(1));
 }
Exemple #2
0
 static LocalizationHelper()
 {
     LocalizationSourceManager = IocHelper.Resolve <ILocalizationSourceManager>();
 }
Exemple #3
0
 public LocalizationScriptManager(ILocalizationSourceManager localizationSourceManager)
 {
     _localizationSourceManager = localizationSourceManager;
     _cache = new ThreadSafeObjectCache <string>(new MemoryCache("__LocalizationScriptManager"), TimeSpan.FromDays(1));
 }