Esempio n. 1
0
 public JsonStringLocalizer(
     JsonLocalizationOptions localizationOptions,
     string resourceName,
     ILogger logger)
 {
     _resourceName      = resourceName ?? throw new ArgumentNullException(nameof(resourceName));
     _logger            = logger ?? NullLogger.Instance;
     _resourcesPath     = Path.Combine(ApplicationHelper.AppRoot, localizationOptions.ResourcesPath);
     _resourcesPathType = localizationOptions.ResourcesPathType;
 }
 public JsonStringLocalizerFactory(IOptions <JsonLocalizationOptions> localizationOptions, ILoggerFactory loggerFactory)
 {
     _localizationOptions = localizationOptions.Value;
     _loggerFactory       = loggerFactory;
 }