20 references to RequestLocalizationMiddleware
Microsoft.AspNetCore.Localization (16)
ApplicationBuilderExtensions.cs (9)
10
/// Extension methods for adding the <see cref="
RequestLocalizationMiddleware
"/> to an application.
15
/// Adds the <see cref="
RequestLocalizationMiddleware
"/> to automatically set culture information for
24
return app.UseMiddleware<
RequestLocalizationMiddleware
>();
28
/// Adds the <see cref="
RequestLocalizationMiddleware
"/> to automatically set culture information for
41
return app.UseMiddleware<
RequestLocalizationMiddleware
>(Options.Create(options));
45
/// Adds the <see cref="
RequestLocalizationMiddleware
"/> to automatically set culture information for
64
return app.UseMiddleware<
RequestLocalizationMiddleware
>(Options.Create(options));
68
/// Adds the <see cref="
RequestLocalizationMiddleware
"/> to automatically set culture information for
94
return app.UseMiddleware<
RequestLocalizationMiddleware
>(Options.Create(options));
RequestCultureProvider.cs (1)
21
/// The current options for the <see cref="
RequestLocalizationMiddleware
"/>.
RequestLocalizationMiddleware.cs (3)
27
/// Creates a new <see cref="
RequestLocalizationMiddleware
"/>.
32
/// <see cref="
RequestLocalizationMiddleware
"/>.</param>
38
_logger = loggerFactory?.CreateLogger<
RequestLocalizationMiddleware
>() ?? throw new ArgumentNullException(nameof(loggerFactory));
RequestLocalizationOptions.cs (3)
10
/// Specifies options for the <see cref="
RequestLocalizationMiddleware
"/>.
93
/// The cultures supported by the application. The <see cref="
RequestLocalizationMiddleware
"/> will only set
100
/// The UI cultures supported by the application. The <see cref="
RequestLocalizationMiddleware
"/> will only set
Microsoft.AspNetCore.Localization.Tests (4)
CookieRequestCultureProviderTest.cs (4)
172
TestSink.EnableWithTypeName<
RequestLocalizationMiddleware
>,
173
TestSink.EnableWithTypeName<
RequestLocalizationMiddleware
>);
232
TestSink.EnableWithTypeName<
RequestLocalizationMiddleware
>,
233
TestSink.EnableWithTypeName<
RequestLocalizationMiddleware
>);