1 instantiation of RequestLocalizationMiddleware
Aspire.Dashboard (1)
Utils\GlobalizationHelpers.cs (1)
136var middleware = new RequestLocalizationMiddleware(c => Task.CompletedTask, Options.Create(new RequestLocalizationOptions
21 references to RequestLocalizationMiddleware
Aspire.Dashboard (1)
Utils\GlobalizationHelpers.cs (1)
136var middleware = new RequestLocalizationMiddleware(c => Task.CompletedTask, Options.Create(new RequestLocalizationOptions
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 24return app.UseMiddleware<RequestLocalizationMiddleware>(); 28/// Adds the <see cref="RequestLocalizationMiddleware"/> to automatically set culture information for 41return app.UseMiddleware<RequestLocalizationMiddleware>(Options.Create(options)); 45/// Adds the <see cref="RequestLocalizationMiddleware"/> to automatically set culture information for 64return app.UseMiddleware<RequestLocalizationMiddleware>(Options.Create(options)); 68/// Adds the <see cref="RequestLocalizationMiddleware"/> to automatically set culture information for 94return 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"/>. 31/// <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)
172TestSink.EnableWithTypeName<RequestLocalizationMiddleware>, 173TestSink.EnableWithTypeName<RequestLocalizationMiddleware>); 232TestSink.EnableWithTypeName<RequestLocalizationMiddleware>, 233TestSink.EnableWithTypeName<RequestLocalizationMiddleware>);