Table of Contents

Class TlumachWebServiceCollectionExtensions

Namespace
Tlumach.Web
Assembly
Tlumach.Web.dll

Registers the culture options of a web application.

public static class TlumachWebServiceCollectionExtensions
Inheritance
TlumachWebServiceCollectionExtensions
Inherited Members

Methods

AddTlumachCultures(IServiceCollection, Action<TlumachCultureOptions>?)

Registers TlumachCultureOptions, which the request localization, the culture endpoint, and the culture selectors of Tlumach use.

Nothing else is registered. A repeated call, or a call after AddTlumachBlazor, configures the instance that is already registered.

public static IServiceCollection AddTlumachCultures(this IServiceCollection services, Action<TlumachCultureOptions>? configure = null)

Parameters

services IServiceCollection

The services.

configure Action<TlumachCultureOptions>

A callback that configures the options.

Returns

IServiceCollection

The value of services.