Table of Contents

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 IServiceProvider
options 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

baseName string

The base name of the resource.

location string

The location of the resource.

Returns

IStringLocalizer

An instance of JsonStringLocalizer.

Create(Type)

Creates an IStringLocalizer for a specific type.

public IStringLocalizer Create(Type resourceSource)

Parameters

resourceSource Type

The type for which the localizer is created.

Returns

IStringLocalizer

An instance of JsonStringLocalizer.