34 instantiations of RequestCulture
BasicWebSite (1)
LocalizationPipeline.cs (1)
22
DefaultRequestCulture = new
RequestCulture
(culture: "en-US", uiCulture: "en-US"),
LocalizationWebsite (6)
StartupContentLanguageHeader.cs (1)
22
DefaultRequestCulture = new
RequestCulture
("en-US"),
StartupCustomCulturePreserved.cs (1)
21
DefaultRequestCulture = new
RequestCulture
("en-US"),
StartupGetAllStrings.cs (1)
25
DefaultRequestCulture = new
RequestCulture
("en-US"),
StartupResourcesAtRootFolder.cs (1)
28
DefaultRequestCulture = new
RequestCulture
("en-US"),
StartupResourcesInClassLibrary.cs (1)
31
DefaultRequestCulture = new
RequestCulture
("en-US"),
StartupResourcesInFolder.cs (1)
31
DefaultRequestCulture = new
RequestCulture
("en-US"),
Microsoft.AspNetCore.Localization (3)
RequestLocalizationMiddleware.cs (1)
103
var result = new
RequestCulture
(cultureInfo, uiCultureInfo);
RequestLocalizationOptions.cs (2)
15
new
RequestCulture
(CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture);
163
DefaultRequestCulture = new
RequestCulture
(new CultureInfo(defaultCulture, useUserOverride: CultureInfoUseUserOverride));
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
44
DefaultRequestCulture = new
RequestCulture
("en-US"),
104
DefaultRequestCulture = new
RequestCulture
("en-US")
163
DefaultRequestCulture = new
RequestCulture
("en-US"),
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
27
DefaultRequestCulture = new
RequestCulture
("en-US"),
68
DefaultRequestCulture = new
RequestCulture
("fr-FR"),
108
DefaultRequestCulture = new
RequestCulture
("fr-FR"),
149
DefaultRequestCulture = new
RequestCulture
("en-US"),
CookieRequestCultureProviderTest.cs (6)
31
DefaultRequestCulture = new
RequestCulture
("en-US"),
64
var requestCulture = new
RequestCulture
(culture);
84
DefaultRequestCulture = new
RequestCulture
("en-US"),
133
DefaultRequestCulture = new
RequestCulture
("en-US"),
184
DefaultRequestCulture = new
RequestCulture
("en-US"),
244
DefaultRequestCulture = new
RequestCulture
("en-US"),
CustomRequestCultureProviderTest.cs (1)
28
DefaultRequestCulture = new
RequestCulture
("en-US"),
QueryStringRequestCultureProviderTest.cs (8)
27
DefaultRequestCulture = new
RequestCulture
("en-US"),
69
DefaultRequestCulture = new
RequestCulture
("en-US")
103
DefaultRequestCulture = new
RequestCulture
("en-US"),
144
DefaultRequestCulture = new
RequestCulture
("en-US"),
185
DefaultRequestCulture = new
RequestCulture
("en-US"),
227
DefaultRequestCulture = new
RequestCulture
("en-US"),
269
DefaultRequestCulture = new
RequestCulture
("en-US"),
316
DefaultRequestCulture = new
RequestCulture
("en-US"),
RazorWebSite (2)
Startup.cs (1)
48
DefaultRequestCulture = new
RequestCulture
("en-GB", "en-US"),
StartupDataAnnotations.cs (1)
36
DefaultRequestCulture = new
RequestCulture
("en-US", "en-US"),
42 references to RequestCulture
LocalizationSample (1)
Startup.cs (1)
45
var
requestCulture = requestCultureFeature.RequestCulture;
LocalizationWebsite (1)
StartupBuilderAPIs.cs (1)
33
var
requestCulture = requestCultureFeature.RequestCulture;
Microsoft.AspNetCore.Localization (20)
CookieRequestCultureProvider.cs (5)
46
/// Creates a string representation of a <see cref="
RequestCulture
"/> for placement in a cookie.
48
/// <param name="requestCulture">The <see cref="
RequestCulture
"/>.</param>
50
public static string MakeCookieValue(
RequestCulture
requestCulture)
60
/// Parses a <see cref="
RequestCulture
"/> from the specified cookie value.
64
/// <returns>The <see cref="
RequestCulture
"/> or <c>null</c> if parsing fails.</returns>
IRequestCultureFeature.cs (2)
12
/// The <see cref="Localization.
RequestCulture
"/> of the request.
14
RequestCulture
RequestCulture { get; }
RequestCulture.cs (4)
14
/// Creates a new <see cref="
RequestCulture
"/> object with its <see cref="Culture"/> and <see cref="UICulture"/>
24
/// Creates a new <see cref="
RequestCulture
"/> object with its <see cref="Culture"/> and <see cref="UICulture"/>
34
/// Creates a new <see cref="
RequestCulture
"/> object with its <see cref="Culture"/> and <see cref="UICulture"/>
45
/// Creates a new <see cref="
RequestCulture
"/> object with its <see cref="Culture"/> and <see cref="UICulture"/>
RequestCultureFeature.cs (4)
12
/// Creates a new <see cref="RequestCultureFeature"/> with the specified <see cref="Localization.
RequestCulture
"/>.
14
/// <param name="requestCulture">The <see cref="Localization.
RequestCulture
"/>.</param>
16
public RequestCultureFeature(
RequestCulture
requestCulture, IRequestCultureProvider? provider)
25
public
RequestCulture
RequestCulture { get; }
RequestLocalizationMiddleware.cs (3)
51
var
requestCulture = _options.DefaultRequestCulture;
103
var
result = new RequestCulture(cultureInfo, uiCultureInfo);
123
private static void SetCurrentThreadCulture(
RequestCulture
requestCulture)
RequestLocalizationOptions.cs (2)
14
private
RequestCulture
_defaultRequestCulture =
40
public
RequestCulture
DefaultRequestCulture
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
66
var
requestCulture = requestCultureFeature.RequestCulture;
117
var
requestCulture = requestCultureFeature.RequestCulture;
187
var
requestCulture = requestCultureFeature.RequestCulture;
Microsoft.AspNetCore.Localization.Tests (17)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
37
var
requestCulture = requestCultureFeature.RequestCulture;
78
var
requestCulture = requestCultureFeature.RequestCulture;
118
var
requestCulture = requestCultureFeature.RequestCulture;
162
var
requestCulture = requestCultureFeature.RequestCulture;
CookieRequestCultureProviderTest.cs (4)
51
var
requestCulture = requestCultureFeature.RequestCulture;
64
var
requestCulture = new RequestCulture(culture);
103
var
requestCulture = requestCultureFeature.RequestCulture;
152
var
requestCulture = requestCultureFeature.RequestCulture;
CustomRequestCultureProviderTest.cs (1)
48
var
requestCulture = requestCultureFeature.RequestCulture;
QueryStringRequestCultureProviderTest.cs (8)
40
var
requestCulture = requestCultureFeature.RequestCulture;
74
var
requestCulture = requestCultureFeature.RequestCulture;
116
var
requestCulture = requestCultureFeature.RequestCulture;
157
var
requestCulture = requestCultureFeature.RequestCulture;
198
var
requestCulture = requestCultureFeature.RequestCulture;
240
var
requestCulture = requestCultureFeature.RequestCulture;
287
var
requestCulture = requestCultureFeature.RequestCulture;
335
var
requestCulture = requestCultureFeature.RequestCulture;