Esempio n. 1
0
 public TranslationService(
     IAntiForgeryValidationService antiForgeryValidationService,
     ILocalizationServiceWrapper localizationService,
     ITranslationRepository translationRepository,
     IContentTypeRepository contentTypeRepository,
     HttpRequestBase request)
 {
     if (antiForgeryValidationService == null)
     {
         throw new ArgumentNullException("antiForgeryValidationService");
     }
     if (localizationService == null)
     {
         throw new ArgumentNullException("localizationService");
     }
     if (translationRepository == null)
     {
         throw new ArgumentNullException("translationRepository");
     }
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     _antiForgeryValidationService = antiForgeryValidationService;
     _localizationService          = localizationService;
     _translationRepository        = translationRepository;
     _contentTypeRepository        = contentTypeRepository;
     _request = request;
 }
Esempio n. 2
0
 public ToolboxMenuProvider(ILocalizationServiceWrapper localizationService)
 {
     if (localizationService == null)
     {
         throw new ArgumentNullException("localizationService");
     }
     _localizationService = localizationService;
 }
 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;
 }
Esempio n. 4
0
 public TranslationService(
     IAntiForgeryValidationService antiForgeryValidationService,
     ILocalizationServiceWrapper localizationService,
     ITranslationRepository translationRepository,
     IContentTypeRepository contentTypeRepository,
     HttpRequestBase request)
 {
     if (antiForgeryValidationService == null) throw new ArgumentNullException("antiForgeryValidationService");
     if (localizationService == null) throw new ArgumentNullException("localizationService");
     if (translationRepository == null) throw new ArgumentNullException("translationRepository");
     if (request == null) throw new ArgumentNullException("request");
     _antiForgeryValidationService = antiForgeryValidationService;
     _localizationService = localizationService;
     _translationRepository = translationRepository;
     _contentTypeRepository = contentTypeRepository;
     _request = request;
 }
 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;
 }
Esempio n. 6
0
 public ToolboxMenuProvider(ILocalizationServiceWrapper localizationService)
 {
     if (localizationService == null) throw new ArgumentNullException("localizationService");
     _localizationService = localizationService;
 }