43 instantiations of RequestLocalizationOptions
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
283_app.UseRequestLocalization(new RequestLocalizationOptions()
BasicWebSite (1)
LocalizationPipeline.cs (1)
20var options = new RequestLocalizationOptions()
LocalizationWebsite (6)
StartupContentLanguageHeader.cs (1)
20app.UseRequestLocalization(new RequestLocalizationOptions
StartupCustomCulturePreserved.cs (1)
19app.UseRequestLocalization(new RequestLocalizationOptions
StartupGetAllStrings.cs (1)
23app.UseRequestLocalization(new RequestLocalizationOptions
StartupResourcesAtRootFolder.cs (1)
26app.UseRequestLocalization(new RequestLocalizationOptions
StartupResourcesInClassLibrary.cs (1)
29app.UseRequestLocalization(new RequestLocalizationOptions
StartupResourcesInFolder.cs (1)
29app.UseRequestLocalization(new RequestLocalizationOptions
Microsoft.AspNetCore.Localization (2)
ApplicationBuilderExtensions.cs (2)
61var options = new RequestLocalizationOptions(); 89var options = new RequestLocalizationOptions()
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
42var options = new RequestLocalizationOptions 102var options = new RequestLocalizationOptions 161var options = new RequestLocalizationOptions
Microsoft.AspNetCore.Localization.Tests (27)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
25app.UseRequestLocalization(new RequestLocalizationOptions 66app.UseRequestLocalization(new RequestLocalizationOptions 106app.UseRequestLocalization(new RequestLocalizationOptions 147app.UseRequestLocalization(new RequestLocalizationOptions
CookieRequestCultureProviderTest.cs (5)
29var options = new RequestLocalizationOptions 82var options = new RequestLocalizationOptions 131var options = new RequestLocalizationOptions 182var options = new RequestLocalizationOptions 242var options = new RequestLocalizationOptions
CustomRequestCultureProviderTest.cs (1)
26var options = new RequestLocalizationOptions
QueryStringRequestCultureProviderTest.cs (8)
25app.UseRequestLocalization(new RequestLocalizationOptions 67app.UseRequestLocalization(new RequestLocalizationOptions 101app.UseRequestLocalization(new RequestLocalizationOptions 142app.UseRequestLocalization(new RequestLocalizationOptions 183app.UseRequestLocalization(new RequestLocalizationOptions 225app.UseRequestLocalization(new RequestLocalizationOptions 267var options = new RequestLocalizationOptions 314var options = new RequestLocalizationOptions
RequestLocalizationOptionsExtensionsTest.cs (1)
14var options = new RequestLocalizationOptions();
RequestLocalizationOptionsTest.cs (8)
24var options = new RequestLocalizationOptions(); 41var options = new RequestLocalizationOptions(); 52var options = new RequestLocalizationOptions(); 62var options = new RequestLocalizationOptions(); 78var options = new RequestLocalizationOptions(); 92var options = new RequestLocalizationOptions() 106var options = new RequestLocalizationOptions() 120var options = new RequestLocalizationOptions()
RazorPagesWebSite (1)
StartupWithoutEndpointRouting.cs (1)
41app.UseRequestLocalization(new RequestLocalizationOptions
RazorWebSite (2)
Startup.cs (1)
46app.UseRequestLocalization(new RequestLocalizationOptions
StartupDataAnnotations.cs (1)
34app.UseRequestLocalization(new RequestLocalizationOptions
51 references to RequestLocalizationOptions
BasicWebSite (1)
LocalizationPipeline.cs (1)
20var options = new RequestLocalizationOptions()
Microsoft.AspNetCore.Localization (30)
ApplicationBuilderExtensions.cs (7)
32/// <param name="options">The <see cref="RequestLocalizationOptions"/> to configure the middleware with.</param> 36RequestLocalizationOptions options) 49/// <param name="optionsAction">A callback that configures the <see cref="RequestLocalizationOptions"/>.</param> 51/// This will going to instantiate a new <see cref="RequestLocalizationOptions"/> that doesn't come from the services. 56Action<RequestLocalizationOptions> optionsAction) 61var options = new RequestLocalizationOptions(); 89var options = new RequestLocalizationOptions()
IRequestCultureFeature.cs (1)
19/// <see cref="Builder.RequestLocalizationOptions.DefaultRequestCulture"/>.
RequestCultureProvider.cs (1)
23public RequestLocalizationOptions? Options { get; set; }
RequestLocalizationMiddleware.cs (3)
23private readonly RequestLocalizationOptions _options; 30/// <param name="options">The <see cref="RequestLocalizationOptions"/> representing the options for the 33public RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory)
RequestLocalizationOptions.cs (7)
18/// Creates a new <see cref="RequestLocalizationOptions"/> with default values. 122/// <returns>The <see cref="RequestLocalizationOptions"/>.</returns> 123public RequestLocalizationOptions AddSupportedCultures(params string[] cultures) 141/// <returns>The <see cref="RequestLocalizationOptions"/>.</returns> 142public RequestLocalizationOptions AddSupportedUICultures(params string[] uiCultures) 160/// <returns>The <see cref="RequestLocalizationOptions"/>.</returns> 161public RequestLocalizationOptions SetDefaultCulture(string defaultCulture)
RequestLocalizationOptionsExtensions.cs (6)
9/// Extension methods for the <see cref="RequestLocalizationOptions"/>. 14/// Adds a new <see cref="RequestCultureProvider"/> to the <see cref="RequestLocalizationOptions.RequestCultureProviders"/>. 18/// <returns>The <see cref="RequestLocalizationOptions"/>.</returns> 19/// <remarks>This method ensures that <paramref name="requestCultureProvider"/> has priority over other <see cref="RequestCultureProvider"/> instances in <see cref="RequestLocalizationOptions.RequestCultureProviders"/>.</remarks> 20public static RequestLocalizationOptions AddInitialRequestCultureProvider( 21this RequestLocalizationOptions requestLocalizationOptions,
RequestLocalizationServiceCollectionExtensions.cs (5)
17/// <param name="configureOptions">A delegate to configure the <see cref="RequestLocalizationOptions"/>.</param> 19public static IServiceCollection AddRequestLocalization(this IServiceCollection services, Action<RequestLocalizationOptions> configureOptions) 31/// <param name="configureOptions">A delegate to configure the <see cref="RequestLocalizationOptions"/>.</param> 33public static IServiceCollection AddRequestLocalization<TService>(this IServiceCollection services, Action<RequestLocalizationOptions, TService> configureOptions) where TService : class 38services.AddOptions<RequestLocalizationOptions>().Configure(configureOptions);
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
42var options = new RequestLocalizationOptions 102var options = new RequestLocalizationOptions 161var options = new RequestLocalizationOptions
Microsoft.AspNetCore.Localization.Tests (17)
CookieRequestCultureProviderTest.cs (5)
29var options = new RequestLocalizationOptions 82var options = new RequestLocalizationOptions 131var options = new RequestLocalizationOptions 182var options = new RequestLocalizationOptions 242var options = new RequestLocalizationOptions
CustomRequestCultureProviderTest.cs (1)
26var options = new RequestLocalizationOptions
QueryStringRequestCultureProviderTest.cs (2)
267var options = new RequestLocalizationOptions 314var options = new RequestLocalizationOptions
RequestLocalizationOptionsExtensionsTest.cs (1)
14var options = new RequestLocalizationOptions();
RequestLocalizationOptionsTest.cs (8)
24var options = new RequestLocalizationOptions(); 41var options = new RequestLocalizationOptions(); 52var options = new RequestLocalizationOptions(); 62var options = new RequestLocalizationOptions(); 78var options = new RequestLocalizationOptions(); 92var options = new RequestLocalizationOptions() 106var options = new RequestLocalizationOptions() 120var options = new RequestLocalizationOptions()