public ResourceManagerWithCultureSqlStringLocalizer(
     Dictionary <string, Dictionary <string, string> > localizations,
     LocalizationModelContext modelContext,
     string resourceKey,
     SqlLocalizationOptions options,
     CultureInfo culture) : base(localizations, modelContext, resourceKey, options)
 {
     _culture = culture;
 }
コード例 #2
0
 public SqlStringLocalizerFactory(
     LocalizationModelContext context,
     LocalizationModelContext modelContext,
     IOptions <SqlLocalizationOptions> localizationOptions)
 {
     _options               = localizationOptions;
     _modelContext          = modelContext;
     _resourceLocalizations = new ConcurrentDictionary <string, IStringLocalizer>();
 }
コード例 #3
0
 public SqlStringLocalizer(Dictionary <string, Dictionary <string, string> > localizations,
                           LocalizationModelContext modelContext,
                           string resourceKey,
                           SqlLocalizationOptions options)
 {
     _modelContext  = modelContext;
     _localizations = localizations;
     _resourceKey   = resourceKey;
     _options       = options;
 }