Class UmbracoBackOfficeIdentityCultureProvider
Sets the request culture to the culture of the back office user, if one is determined to be in the request.
Inheritance
System.Object
Microsoft.AspNetCore.Localization.RequestCultureProvider
Namespace: Umbraco.Cms.Web.Common.Localization
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoBackOfficeIdentityCultureProvider : DynamicRequestCultureProviderBase, IRequestCultureProvider
Constructors
View SourceUmbracoBackOfficeIdentityCultureProvider(RequestLocalizationOptions)
Initializes a new instance of the UmbracoBackOfficeIdentityCultureProvider class.
Declaration
public UmbracoBackOfficeIdentityCultureProvider(RequestLocalizationOptions localizationOptions)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Builder.RequestLocalizationOptions | localizationOptions | The localization options. |
Methods
View SourceGetProviderCultureResult(HttpContext)
Gets the provider culture result.
Declaration
protected sealed override 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. |