Exemple #1
0
 public SqlStringLocalizerFactory(
     LocalizationModelContext context,
     DevelopmentSetup developmentSetup,
     IOptions <SqlLocalizationOptions> localizationOptions)
 {
     _options          = localizationOptions ?? throw new ArgumentNullException(nameof(localizationOptions));
     _context          = context ?? throw new ArgumentNullException(nameof(LocalizationModelContext));
     _developmentSetup = developmentSetup;
 }
 public DevelopmentSetup(
     LocalizationModelContext context,
     IOptions <SqlLocalizationOptions> localizationOptions,
     IOptions <RequestLocalizationOptions> requestLocalizationOptions)
 {
     _options = localizationOptions;
     _context = context;
     _requestLocalizationOptions = requestLocalizationOptions;
 }
        public SqlStringLocalizerFactory(
            LocalizationModelContext context,
            IOptions <SqlLocalizationOptions> localizationOptions)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(LocalizationModelContext));
            }

            if (localizationOptions == null)
            {
                throw new ArgumentNullException(nameof(localizationOptions));
            }

            _options = localizationOptions;
            _context = context;
        }