43 instantiations of RequestLocalizationOptions
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
283
_app.UseRequestLocalization(new
RequestLocalizationOptions
()
BasicWebSite (1)
LocalizationPipeline.cs (1)
20
var options = new
RequestLocalizationOptions
()
LocalizationWebsite (6)
StartupContentLanguageHeader.cs (1)
20
app.UseRequestLocalization(new
RequestLocalizationOptions
StartupCustomCulturePreserved.cs (1)
19
app.UseRequestLocalization(new
RequestLocalizationOptions
StartupGetAllStrings.cs (1)
23
app.UseRequestLocalization(new
RequestLocalizationOptions
StartupResourcesAtRootFolder.cs (1)
26
app.UseRequestLocalization(new
RequestLocalizationOptions
StartupResourcesInClassLibrary.cs (1)
29
app.UseRequestLocalization(new
RequestLocalizationOptions
StartupResourcesInFolder.cs (1)
29
app.UseRequestLocalization(new
RequestLocalizationOptions
Microsoft.AspNetCore.Localization (2)
ApplicationBuilderExtensions.cs (2)
61
var options = new
RequestLocalizationOptions
();
89
var options = new
RequestLocalizationOptions
()
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
42
var options = new
RequestLocalizationOptions
102
var options = new
RequestLocalizationOptions
161
var options = new
RequestLocalizationOptions
Microsoft.AspNetCore.Localization.Tests (27)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
25
app.UseRequestLocalization(new
RequestLocalizationOptions
66
app.UseRequestLocalization(new
RequestLocalizationOptions
106
app.UseRequestLocalization(new
RequestLocalizationOptions
147
app.UseRequestLocalization(new
RequestLocalizationOptions
CookieRequestCultureProviderTest.cs (5)
29
var options = new
RequestLocalizationOptions
82
var options = new
RequestLocalizationOptions
131
var options = new
RequestLocalizationOptions
182
var options = new
RequestLocalizationOptions
242
var options = new
RequestLocalizationOptions
CustomRequestCultureProviderTest.cs (1)
26
var options = new
RequestLocalizationOptions
QueryStringRequestCultureProviderTest.cs (8)
25
app.UseRequestLocalization(new
RequestLocalizationOptions
67
app.UseRequestLocalization(new
RequestLocalizationOptions
101
app.UseRequestLocalization(new
RequestLocalizationOptions
142
app.UseRequestLocalization(new
RequestLocalizationOptions
183
app.UseRequestLocalization(new
RequestLocalizationOptions
225
app.UseRequestLocalization(new
RequestLocalizationOptions
267
var options = new
RequestLocalizationOptions
314
var options = new
RequestLocalizationOptions
RequestLocalizationOptionsExtensionsTest.cs (1)
14
var options = new
RequestLocalizationOptions
();
RequestLocalizationOptionsTest.cs (8)
24
var options = new
RequestLocalizationOptions
();
41
var options = new
RequestLocalizationOptions
();
52
var options = new
RequestLocalizationOptions
();
62
var options = new
RequestLocalizationOptions
();
78
var options = new
RequestLocalizationOptions
();
92
var options = new
RequestLocalizationOptions
()
106
var options = new
RequestLocalizationOptions
()
120
var options = new
RequestLocalizationOptions
()
RazorPagesWebSite (1)
StartupWithoutEndpointRouting.cs (1)
41
app.UseRequestLocalization(new
RequestLocalizationOptions
RazorWebSite (2)
Startup.cs (1)
46
app.UseRequestLocalization(new
RequestLocalizationOptions
StartupDataAnnotations.cs (1)
34
app.UseRequestLocalization(new
RequestLocalizationOptions
51 references to RequestLocalizationOptions
BasicWebSite (1)
LocalizationPipeline.cs (1)
20
var
options = new RequestLocalizationOptions()
Microsoft.AspNetCore.Localization (30)
ApplicationBuilderExtensions.cs (7)
32
/// <param name="options">The <see cref="
RequestLocalizationOptions
"/> to configure the middleware with.</param>
36
RequestLocalizationOptions
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.
56
Action<
RequestLocalizationOptions
> optionsAction)
61
var
options = new RequestLocalizationOptions();
89
var
options = new RequestLocalizationOptions()
IRequestCultureFeature.cs (1)
19
/// <see cref="Builder.
RequestLocalizationOptions
.DefaultRequestCulture"/>.
RequestCultureProvider.cs (1)
23
public
RequestLocalizationOptions
? Options { get; set; }
RequestLocalizationMiddleware.cs (3)
23
private readonly
RequestLocalizationOptions
_options;
30
/// <param name="options">The <see cref="
RequestLocalizationOptions
"/> representing the options for the
33
public 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>
123
public
RequestLocalizationOptions
AddSupportedCultures(params string[] cultures)
141
/// <returns>The <see cref="
RequestLocalizationOptions
"/>.</returns>
142
public
RequestLocalizationOptions
AddSupportedUICultures(params string[] uiCultures)
160
/// <returns>The <see cref="
RequestLocalizationOptions
"/>.</returns>
161
public
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>
20
public static
RequestLocalizationOptions
AddInitialRequestCultureProvider(
21
this
RequestLocalizationOptions
requestLocalizationOptions,
RequestLocalizationServiceCollectionExtensions.cs (5)
17
/// <param name="configureOptions">A delegate to configure the <see cref="
RequestLocalizationOptions
"/>.</param>
19
public static IServiceCollection AddRequestLocalization(this IServiceCollection services, Action<
RequestLocalizationOptions
> configureOptions)
31
/// <param name="configureOptions">A delegate to configure the <see cref="
RequestLocalizationOptions
"/>.</param>
33
public static IServiceCollection AddRequestLocalization<TService>(this IServiceCollection services, Action<
RequestLocalizationOptions
, TService> configureOptions) where TService : class
38
services.AddOptions<
RequestLocalizationOptions
>().Configure(configureOptions);
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
42
var
options = new RequestLocalizationOptions
102
var
options = new RequestLocalizationOptions
161
var
options = new RequestLocalizationOptions
Microsoft.AspNetCore.Localization.Tests (17)
CookieRequestCultureProviderTest.cs (5)
29
var
options = new RequestLocalizationOptions
82
var
options = new RequestLocalizationOptions
131
var
options = new RequestLocalizationOptions
182
var
options = new RequestLocalizationOptions
242
var
options = new RequestLocalizationOptions
CustomRequestCultureProviderTest.cs (1)
26
var
options = new RequestLocalizationOptions
QueryStringRequestCultureProviderTest.cs (2)
267
var
options = new RequestLocalizationOptions
314
var
options = new RequestLocalizationOptions
RequestLocalizationOptionsExtensionsTest.cs (1)
14
var
options = new RequestLocalizationOptions();
RequestLocalizationOptionsTest.cs (8)
24
var
options = new RequestLocalizationOptions();
41
var
options = new RequestLocalizationOptions();
52
var
options = new RequestLocalizationOptions();
62
var
options = new RequestLocalizationOptions();
78
var
options = new RequestLocalizationOptions();
92
var
options = new RequestLocalizationOptions()
106
var
options = new RequestLocalizationOptions()
120
var
options = new RequestLocalizationOptions()