Class DynamicRequestCultureProviderBase
Base implementation that dynamically adds the determined cultures to the supported cultures.
Inheritance
System.Object
Microsoft.AspNetCore.Localization.RequestCultureProvider
Namespace: Umbraco.Cms.Web.Common.Localization
Assembly: Umbraco.Web.Common.dll
Syntax
public abstract class DynamicRequestCultureProviderBase : RequestCultureProvider, IRequestCultureProvider
Constructors
View SourceDynamicRequestCultureProviderBase(RequestLocalizationOptions)
Initializes a new instance of the DynamicRequestCultureProviderBase class.
Declaration
protected DynamicRequestCultureProviderBase(RequestLocalizationOptions requestLocalizationOptions)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Builder.RequestLocalizationOptions | requestLocalizationOptions | The request localization options. |
Methods
View SourceDetermineProviderCultureResult(HttpContext)
Declaration
public override Task<ProviderCultureResult> DetermineProviderCultureResult(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext |
Returns
Type | Description |
---|---|
Task<Microsoft.AspNetCore.Localization.ProviderCultureResult> |
GetProviderCultureResult(HttpContext)
Gets the provider culture result.
Declaration
protected abstract ProviderCultureResult GetProviderCultureResult(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Localization.ProviderCultureResult | The provider culture result. |