public LocalizationModelContext(
     ILogger <LocalizationModelContext> logger,
     IOptions <SqlLocalizationOptions> localizationOptions)
 {
     _logger  = logger;
     _options = localizationOptions;
     _sqlLocalizationOptions = localizationOptions.Value;
 }
Exemplo n.º 2
0
 public SqlStringLocalizer(Dictionary <string, Dictionary <string, string> > localizations,
                           LocalizationModelContext modelContext,
                           string resourceKey,
                           SqlLocalizationOptions options)
 {
     _modelContext  = modelContext;
     _localizations = localizations;
     _resourceKey   = resourceKey;
     _options       = options;
 }