示例#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;
 }
示例#2
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;
 }