Beispiel #1
0
 public LocalizationModelContext(
     ILogger <LocalizationModelContext> logger,
     IOptions <SqlLocalizationOptions> localizationOptions)
 {
     _logger = logger;
     _sqlLocalizationOptions = localizationOptions.Value;
 }
 public ResourceManagerWithCultureSqlStringLocalizer(
     Dictionary <string, Dictionary <string, string> > localizations,
     LocalizationModelContext modelContext,
     string resourceKey,
     SqlLocalizationOptions options,
     CultureInfo culture) : base(localizations, modelContext, resourceKey, options)
 {
     _culture = culture;
 }
 public SqlStringLocalizer(Dictionary <string, Dictionary <string, string> > localizations,
                           LocalizationModelContext modelContext,
                           string resourceKey,
                           SqlLocalizationOptions options)
 {
     _modelContext  = modelContext;
     _localizations = localizations;
     _resourceKey   = resourceKey;
     _options       = options;
 }