1 write to Culture
Microsoft.AspNetCore.Localization (1)
RequestCulture.cs (1)
55Culture = culture;
31 references to Culture
LocalizationSample (2)
Startup.cs (2)
90await context.Response.WriteAsync($"<tr><th>{SR["Current request culture:"]}</th><td>{requestCulture.Culture.DisplayName} ({requestCulture.Culture})</td></tr>");
Microsoft.AspNetCore.Localization (7)
CookieRequestCultureProvider.cs (1)
55$"{_culturePrefix}{requestCulture.Culture.Name}",
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"/>
RequestLocalizationMiddleware.cs (2)
100cultureInfo ??= _options.DefaultRequestCulture.Culture; 125CultureInfo.CurrentCulture = requestCulture.Culture;
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
68$"{requestCulture.Culture.Name},{requestCulture.UICulture.Name}"); 120$"{requestCulture.Culture.Name},{requestCulture.UICulture.Name}"); 190$"{requestCulture.Culture.Name},{requestCulture.UICulture.Name}");
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
38Assert.Equal("ar-SA", requestCulture.Culture.Name); 79Assert.Equal("ar-SA", requestCulture.Culture.Name); 119Assert.Equal("fr-FR", requestCulture.Culture.Name); 164Assert.Equal("ar-YE", requestCulture.Culture.Name);
CookieRequestCultureProviderTest.cs (3)
52Assert.Equal("ar-SA", requestCulture.Culture.Name); 104Assert.Equal("en-US", requestCulture.Culture.Name); 153Assert.Equal("en-US", requestCulture.Culture.Name);
CustomRequestCultureProviderTest.cs (1)
49Assert.Equal("ar", requestCulture.Culture.Name);
QueryStringRequestCultureProviderTest.cs (7)
41Assert.Equal("ar-SA", requestCulture.Culture.Name); 75Assert.Equal("en-US", requestCulture.Culture.Name); 117Assert.Equal("en-US", requestCulture.Culture.Name); 199Assert.Equal("ar-SA", requestCulture.Culture.Name); 241Assert.Equal("ar-SA", requestCulture.Culture.Name); 288Assert.Equal("ar-SA", requestCulture.Culture.Name); 336Assert.Equal("fr", requestCulture.Culture.ToString());
RequestLocalizationMiddlewareTest.cs (1)
53Assert.Equal(parentCulture, requestCulture.RequestCulture.Culture.Name);
RequestLocalizationOptionsTest.cs (3)
28Assert.Equal(CultureInfo.CurrentCulture, options.DefaultRequestCulture.Culture); 44Assert.Equal(explicitCulture, options.DefaultRequestCulture.Culture); 124Assert.Equal(defaultCulture, options.DefaultRequestCulture.Culture.Name);