Class JsonStringLocalizerFactory
- Namespace
- XENBIT.ResQueServe.Localization
- Assembly
- RQS.Localization.dll
A factory for creating instances of JsonStringLocalizer.
public class JsonStringLocalizerFactory : IStringLocalizerFactory
- Inheritance
-
JsonStringLocalizerFactory
- Implements
- Inherited Members
Constructors
JsonStringLocalizerFactory(IServiceProvider, IOptions<JsonStringLocalizerOptions>, ILogger<JsonStringLocalizer>)
A factory for creating instances of JsonStringLocalizer.
public JsonStringLocalizerFactory(IServiceProvider serviceProvider, IOptions<JsonStringLocalizerOptions> options, ILogger<JsonStringLocalizer> logger)
Parameters
serviceProvider
IServiceProvideroptions
IOptions<JsonStringLocalizerOptions>logger
ILogger<JsonStringLocalizer>
Methods
Create(string, string)
Creates an IStringLocalizer for a specific base name and location.
public IStringLocalizer Create(string baseName, string location)
Parameters
Returns
- IStringLocalizer
An instance of JsonStringLocalizer.
Create(Type)
Creates an IStringLocalizer for a specific type.
public IStringLocalizer Create(Type resourceSource)
Parameters
resourceSource
TypeThe type for which the localizer is created.
Returns
- IStringLocalizer
An instance of JsonStringLocalizer.