1 implementation of IRequestCultureFeature
Microsoft.AspNetCore.Localization (1)
RequestCultureFeature.cs (1)
9public class RequestCultureFeature : IRequestCultureFeature
46 references to IRequestCultureFeature
Aspire.Dashboard (1)
Utils\GlobalizationHelpers.cs (1)
149var result = tempHttpContext.Features.Get<IRequestCultureFeature>()?.RequestCulture;
LocalizationSample (2)
Startup.cs (2)
44var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
LocalizationWebsite (2)
StartupBuilderAPIs.cs (2)
32var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
110context.Features.Set<IRequestCultureFeature>(new RequestCultureFeature(requestCulture, winningProvider));
Microsoft.AspNetCore.Localization.Routing.Tests (6)
RouteDataRequestCultureProviderTest.cs (6)
65var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 116var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 186var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
Microsoft.AspNetCore.Localization.Tests (34)
AcceptLanguageHeaderRequestCultureProviderTest.cs (8)
36var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 77var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 117var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 161var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
CookieRequestCultureProviderTest.cs (6)
50var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 102var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 151var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
CustomRequestCultureProviderTest.cs (2)
47var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
QueryStringRequestCultureProviderTest.cs (16)
39var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 73var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 115var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 156var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 197var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 239var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 286var requestCultureFeature = context.Features.Get<IRequestCultureFeature>(); 334var requestCultureFeature = context.Features.Get<IRequestCultureFeature>();
RequestLocalizationMiddlewareTest.cs (2)
51var requestCulture = context.Features.Get<IRequestCultureFeature>();