public LanguageFileUpdater(ILanguageLocationService languageLocationService) { if (languageLocationService == null) { throw new ArgumentNullException("languageLocationService"); } _languageLocationService = languageLocationService; }
public SecurityValidator( ILanguageLocationService languageLocationService, HttpContextBase context) { if (languageLocationService == null) throw new ArgumentNullException("languageLocationService"); if (context == null) throw new ArgumentNullException("context"); _languageLocationService = languageLocationService; _context = context; _validDirectories = new[] { Normalize(_languageLocationService.LanguagePath.TrimEnd(Path.DirectorySeparatorChar)) }; }
public SecurityValidator( ILanguageLocationService languageLocationService, HttpContextBase context) { if (languageLocationService == null) { throw new ArgumentNullException("languageLocationService"); } if (context == null) { throw new ArgumentNullException("context"); } _languageLocationService = languageLocationService; _context = context; _validDirectories = new[] { Normalize(_languageLocationService.LanguagePath.TrimEnd(Path.DirectorySeparatorChar)) }; }
public UpdateLanguageFile() { _securityValidator = ServiceLocator.Current.GetInstance <ISecurityValidator>(); _languageFileUpdater = ServiceLocator.Current.GetInstance <ILanguageFileUpdater>(); _languageLocationService = ServiceLocator.Current.GetInstance <ILanguageLocationService>(); }
public LanguageFileUpdater(ILanguageLocationService languageLocationService) { if (languageLocationService == null) throw new ArgumentNullException("languageLocationService"); _languageLocationService = languageLocationService; }
public UpdateLanguageFile() { _securityValidator = ServiceLocator.Current.GetInstance<ISecurityValidator>(); _languageFileUpdater = ServiceLocator.Current.GetInstance<ILanguageFileUpdater>(); _languageLocationService = ServiceLocator.Current.GetInstance<ILanguageLocationService>(); }