Ejemplo n.º 1
0
 public TranslationRepository(
     IContentLanguageWrapper contentLanguage,
     HttpContextBase context)
 {
     if (contentLanguage == null) throw new ArgumentNullException("contentLanguage");
     if (context == null) throw new ArgumentNullException("context");
     _contentLanguage = contentLanguage;
     _context = context;
 }
 public LocalizationServiceDecorator(
     ILocalizationServiceWrapper inner,
     IContentLanguageWrapper contentLanguage,
     ITranslationRepository translationRepository)
 {
     if (inner == null) throw new ArgumentNullException("inner");
     if (contentLanguage == null) throw new ArgumentNullException("contentLanguage");
     if (translationRepository == null) throw new ArgumentNullException("translationRepository");
     _inner = inner;
     _contentLanguage = contentLanguage;
     _translationRepository = translationRepository;
 }
Ejemplo n.º 3
0
 public TranslationRepository(
     IContentLanguageWrapper contentLanguage,
     HttpContextBase context)
 {
     if (contentLanguage == null)
     {
         throw new ArgumentNullException("contentLanguage");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     _contentLanguage = contentLanguage;
     _context         = context;
 }
Ejemplo n.º 4
0
 public LocalizationServiceDecorator(
     ILocalizationServiceWrapper inner,
     IContentLanguageWrapper contentLanguage,
     ITranslationRepository translationRepository)
 {
     if (inner == null)
     {
         throw new ArgumentNullException("inner");
     }
     if (contentLanguage == null)
     {
         throw new ArgumentNullException("contentLanguage");
     }
     if (translationRepository == null)
     {
         throw new ArgumentNullException("translationRepository");
     }
     _inner                 = inner;
     _contentLanguage       = contentLanguage;
     _translationRepository = translationRepository;
 }