Example #1
0
 public LanguageFileUpdater(ILanguageLocationService languageLocationService)
 {
     if (languageLocationService == null)
     {
         throw new ArgumentNullException("languageLocationService");
     }
     _languageLocationService = languageLocationService;
 }
Example #2
0
        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))
                };
        }
Example #3
0
        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))
            };
        }
Example #4
0
 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>();
 }