示例#1
0
 public LanguageFileUpdater(ILanguageLocationService languageLocationService)
 {
     if (languageLocationService == null)
     {
         throw new ArgumentNullException("languageLocationService");
     }
     _languageLocationService = languageLocationService;
 }
示例#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))
                };
        }
示例#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))
            };
        }
示例#4
0
 public UpdateLanguageFile()
 {
     _securityValidator       = ServiceLocator.Current.GetInstance <ISecurityValidator>();
     _languageFileUpdater     = ServiceLocator.Current.GetInstance <ILanguageFileUpdater>();
     _languageLocationService = ServiceLocator.Current.GetInstance <ILanguageLocationService>();
 }
示例#5
0
 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>();
 }