Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​DependencyInjection.​RequestLocalizationServiceCollectionExtensions

Assembly: Microsoft.AspNetCore.Localization

Inheritance: object → RequestLocalizationServiceCollectionExtensions

Extension methods for the request localization middleware.

Methods

public static IServiceCollection
AddRequestLocalization​(IServiceCollection services, System.​Action<​AspNetCore.​Builder.​RequestLocalizationOptions> configureOptions)
Adds services and options for the request localization middleware.
Returns The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
services The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> for adding services.
configureOptions A delegate to configure the <see cref="T:Microsoft.AspNetCore.Builder.RequestLocalizationOptions" /> .
public static IServiceCollection
AddRequestLocalization​(IServiceCollection services, System.​Action<​AspNetCore.​Builder.​RequestLocalizationOptions, TService> configureOptions)
Adds services and options for the request localization middleware.
Returns The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
services The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> for adding services.
configureOptions A delegate to configure the <see cref="T:Microsoft.AspNetCore.Builder.RequestLocalizationOptions" /> .
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object