コード例 #1
0
 public LocalizationModelContext(
     ILogger <LocalizationModelContext> logger,
     IOptions <SqlLocalizationOptions> localizationOptions)
 {
     _logger  = logger;
     _options = localizationOptions;
     _sqlLocalizationOptions = localizationOptions.Value;
 }
コード例 #2
0
 public SqlStringLocalizer(Dictionary <string, Dictionary <string, string> > localizations,
                           LocalizationModelContext modelContext,
                           string resourceKey,
                           SqlLocalizationOptions options)
 {
     _modelContext  = modelContext;
     _localizations = localizations;
     _resourceKey   = resourceKey;
     _options       = options;
 }