Table of Contents

Class TlumachSettingsProvider

Namespace
Tlumach.Extensions.Localization
Assembly
Tlumach.Extensions.Localization.dll

This class keeps settings for various localizer instances bound to specific contents.

The methods of this class can be called from several threads at once, so contexts can be added while the application is running.

public sealed class TlumachSettingsProvider : ITlumachSettingsProvider
Inheritance
TlumachSettingsProvider
Implements
Inherited Members

Methods

AddContext(string, TlumachLocalizationOptions)

Use this method to add localizer options for the specified context. The options replace those added earlier for the same context.

The method can be called while localizers are being created on other threads; the localizers created afterwards use the new options.

public void AddContext(string context, TlumachLocalizationOptions options)

Parameters

context string

The context to add the options for.

options TlumachLocalizationOptions

The options to add.

GetOptionsFor(string)

Returns the options set for the given context.

public TlumachLocalizationOptions GetOptionsFor(string context)

Parameters

context string

The context to retrieve the options for.

Returns

TlumachLocalizationOptions

An instance of options or the default value if the options specific for the context were not found.