November Happy Hour will be moved to Thursday December 5th.

Interface ICurrentCultureContext

Context to manage current cultures for the current execution.

Namespace: EPiServer.Framework.Localization
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface ICurrentCultureContext
Remarks

Compared to System.Globalization.CultureInfo.CurrentCulture and System.Globalization.CultureInfo.CurrentUICulture this context guarantees that during a http request is an assigned value accessible throughout the request.

Properties

CurrentCulture

Gets or sets the determined culture to use for current execution.

Declaration
CultureInfo CurrentCulture { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

Returns null if not explicitly set

CurrentUICulture

Gets or sets the determined UI culture to use for current execution.

Declaration
CultureInfo CurrentUICulture { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

Returns null if not explicitly set

Extension Methods