6 instantiations of ProviderCultureResult
Microsoft.AspNetCore.Localization (3)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
48return Task.FromResult<ProviderCultureResult?>(new ProviderCultureResult(orderedLanguages));
CookieRequestCultureProvider.cs (1)
108return new ProviderCultureResult(cultureName.ToString(), uiCultureName.ToString());
QueryStringRequestCultureProvider.cs (1)
67var providerResultCulture = new ProviderCultureResult(queryCulture, queryUICulture);
Microsoft.AspNetCore.Localization.Routing (1)
RouteDataRequestCultureProvider.cs (1)
62var providerResultCulture = new ProviderCultureResult(culture, uiCulture);
Microsoft.AspNetCore.Localization.Tests (2)
CustomRequestCultureProviderTest.cs (1)
41var requestCulture = new ProviderCultureResult(culture);
RequestLocalizationOptionsExtensionsTest.cs (1)
15var provider = new CustomRequestCultureProvider(context => Task.FromResult(new ProviderCultureResult("ar-YE")));
27 references to ProviderCultureResult
Microsoft.AspNetCore.Localization (23)
AcceptLanguageHeaderRequestCultureProvider.cs (2)
23public override Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext) 48return Task.FromResult<ProviderCultureResult?>(new ProviderCultureResult(orderedLanguages));
CookieRequestCultureProvider.cs (4)
29public override Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext) 40var providerResultCulture = ParseCookieValue(cookie); 42return Task.FromResult<ProviderCultureResult?>(providerResultCulture); 65public static ProviderCultureResult? ParseCookieValue(string value)
CustomRequestCultureProvider.cs (3)
13private readonly Func<HttpContext, Task<ProviderCultureResult?>> _provider; 19public CustomRequestCultureProvider(Func<HttpContext, Task<ProviderCultureResult?>> provider) 27public override Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext)
IRequestCultureProvider.cs (3)
18/// The determined <see cref="ProviderCultureResult"/>. 19/// Returns <c>null</c> if the provider couldn't determine a <see cref="ProviderCultureResult"/>. 21Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext);
ProviderCultureResult.cs (4)
14/// Creates a new <see cref="ProviderCultureResult"/> object that has its <see cref="Cultures"/> and 24/// Creates a new <see cref="ProviderCultureResult"/> object has its <see cref="Cultures"/> and 35/// Creates a new <see cref="ProviderCultureResult"/> object that has its <see cref="Cultures"/> and 45/// Creates a new <see cref="ProviderCultureResult"/> object has its <see cref="Cultures"/> and
QueryStringRequestCultureProvider.cs (3)
27public override Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext) 67var providerResultCulture = new ProviderCultureResult(queryCulture, queryUICulture); 69return Task.FromResult<ProviderCultureResult?>(providerResultCulture);
RequestCultureProvider.cs (3)
18protected static readonly Task<ProviderCultureResult?> NullProviderCultureResult = Task.FromResult(default(ProviderCultureResult)); 26public abstract Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext);
RequestLocalizationMiddleware.cs (1)
59var providerResultCulture = await provider.DetermineProviderCultureResult(context);
Microsoft.AspNetCore.Localization.Routing (3)
RouteDataRequestCultureProvider.cs (3)
28public override Task<ProviderCultureResult?> DetermineProviderCultureResult(HttpContext httpContext) 62var providerResultCulture = new ProviderCultureResult(culture, uiCulture); 64return Task.FromResult<ProviderCultureResult?>(providerResultCulture);
Microsoft.AspNetCore.Localization.Tests (1)
CustomRequestCultureProviderTest.cs (1)
41var requestCulture = new ProviderCultureResult(culture);