36 instantiations of RequestCulture
Aspire.Dashboard (2)
DashboardEndpointsBuilder.cs (1)
69requestCulture ??= new RequestCulture(newLanguage.Name, newLanguage.Name);
Utils\GlobalizationHelpers.cs (1)
126private static readonly RequestCulture s_fallbackRequestCulture = new RequestCulture(CultureInfo.InvariantCulture, CultureInfo.InvariantCulture);
BasicWebSite (1)
LocalizationPipeline.cs (1)
22DefaultRequestCulture = new RequestCulture(culture: "en-US", uiCulture: "en-US"),
LocalizationWebsite (6)
StartupContentLanguageHeader.cs (1)
22DefaultRequestCulture = new RequestCulture("en-US"),
StartupCustomCulturePreserved.cs (1)
21DefaultRequestCulture = new RequestCulture("en-US"),
StartupGetAllStrings.cs (1)
25DefaultRequestCulture = new RequestCulture("en-US"),
StartupResourcesAtRootFolder.cs (1)
28DefaultRequestCulture = new RequestCulture("en-US"),
StartupResourcesInClassLibrary.cs (1)
31DefaultRequestCulture = new RequestCulture("en-US"),
StartupResourcesInFolder.cs (1)
31DefaultRequestCulture = new RequestCulture("en-US"),
Microsoft.AspNetCore.Localization (3)
RequestLocalizationMiddleware.cs (1)
103var result = new RequestCulture(cultureInfo, uiCultureInfo);
RequestLocalizationOptions.cs (2)
15new RequestCulture(CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture); 163DefaultRequestCulture = new RequestCulture(new CultureInfo(defaultCulture, useUserOverride: CultureInfoUseUserOverride));
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
44DefaultRequestCulture = new RequestCulture("en-US"), 104DefaultRequestCulture = new RequestCulture("en-US") 163DefaultRequestCulture = new RequestCulture("en-US"),
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
27DefaultRequestCulture = new RequestCulture("en-US"), 68DefaultRequestCulture = new RequestCulture("fr-FR"), 108DefaultRequestCulture = new RequestCulture("fr-FR"), 149DefaultRequestCulture = new RequestCulture("en-US"),
CookieRequestCultureProviderTest.cs (6)
31DefaultRequestCulture = new RequestCulture("en-US"), 64var requestCulture = new RequestCulture(culture); 84DefaultRequestCulture = new RequestCulture("en-US"), 133DefaultRequestCulture = new RequestCulture("en-US"), 184DefaultRequestCulture = new RequestCulture("en-US"), 244DefaultRequestCulture = new RequestCulture("en-US"),
CustomRequestCultureProviderTest.cs (1)
28DefaultRequestCulture = new RequestCulture("en-US"),
QueryStringRequestCultureProviderTest.cs (8)
27DefaultRequestCulture = new RequestCulture("en-US"), 69DefaultRequestCulture = new RequestCulture("en-US") 103DefaultRequestCulture = new RequestCulture("en-US"), 144DefaultRequestCulture = new RequestCulture("en-US"), 185DefaultRequestCulture = new RequestCulture("en-US"), 227DefaultRequestCulture = new RequestCulture("en-US"), 269DefaultRequestCulture = new RequestCulture("en-US"), 316DefaultRequestCulture = new RequestCulture("en-US"),
RazorWebSite (2)
Startup.cs (1)
48DefaultRequestCulture = new RequestCulture("en-GB", "en-US"),
StartupDataAnnotations.cs (1)
36DefaultRequestCulture = new RequestCulture("en-US", "en-US"),
46 references to RequestCulture
Aspire.Dashboard (4)
DashboardEndpointsBuilder.cs (1)
64RequestCulture? requestCulture = null;
Utils\GlobalizationHelpers.cs (3)
126private static readonly RequestCulture s_fallbackRequestCulture = new RequestCulture(CultureInfo.InvariantCulture, CultureInfo.InvariantCulture); 128internal static async Task<RequestCulture?> ResolveSetCultureToAcceptedCultureAsync(string acceptLanguage, List<CultureInfo> availableCultures) 149var result = tempHttpContext.Features.Get<IRequestCultureFeature>()?.RequestCulture;
LocalizationSample (1)
Startup.cs (1)
45var requestCulture = requestCultureFeature.RequestCulture;
LocalizationWebsite (1)
StartupBuilderAPIs.cs (1)
33var 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> 50public 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. 14RequestCulture 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> 16public RequestCultureFeature(RequestCulture requestCulture, IRequestCultureProvider? provider) 25public RequestCulture RequestCulture { get; }
RequestLocalizationMiddleware.cs (3)
51var requestCulture = _options.DefaultRequestCulture; 103var result = new RequestCulture(cultureInfo, uiCultureInfo); 123private static void SetCurrentThreadCulture(RequestCulture requestCulture)
RequestLocalizationOptions.cs (2)
14private RequestCulture _defaultRequestCulture = 40public RequestCulture DefaultRequestCulture
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
66var requestCulture = requestCultureFeature.RequestCulture; 117var requestCulture = requestCultureFeature.RequestCulture; 187var requestCulture = requestCultureFeature.RequestCulture;
Microsoft.AspNetCore.Localization.Tests (17)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
37var requestCulture = requestCultureFeature.RequestCulture; 78var requestCulture = requestCultureFeature.RequestCulture; 118var requestCulture = requestCultureFeature.RequestCulture; 162var requestCulture = requestCultureFeature.RequestCulture;
CookieRequestCultureProviderTest.cs (4)
51var requestCulture = requestCultureFeature.RequestCulture; 64var requestCulture = new RequestCulture(culture); 103var requestCulture = requestCultureFeature.RequestCulture; 152var requestCulture = requestCultureFeature.RequestCulture;
CustomRequestCultureProviderTest.cs (1)
48var requestCulture = requestCultureFeature.RequestCulture;
QueryStringRequestCultureProviderTest.cs (8)
40var requestCulture = requestCultureFeature.RequestCulture; 74var requestCulture = requestCultureFeature.RequestCulture; 116var requestCulture = requestCultureFeature.RequestCulture; 157var requestCulture = requestCultureFeature.RequestCulture; 198var requestCulture = requestCultureFeature.RequestCulture; 240var requestCulture = requestCultureFeature.RequestCulture; 287var requestCulture = requestCultureFeature.RequestCulture; 335var requestCulture = requestCultureFeature.RequestCulture;