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