Class DefaultCultureAccessor
Provides the default implementation of IDefaultCultureAccessor.
Inheritance
System.Object
Namespace: Umbraco.Web.PublishedCache
Assembly: Umbraco.Web.dll
Syntax
public class DefaultCultureAccessor : IDefaultCultureAccessor
Constructors
View SourceDefaultCultureAccessor(ILocalizationService, IRuntimeState)
Initializes a new instance of the DefaultCultureAccessor class.
Declaration
public DefaultCultureAccessor(ILocalizationService localizationService, IRuntimeState runtimeState)
Parameters
Type | Name | Description |
---|---|---|
ILocalizationService | localizationService | |
IRuntimeState | runtimeState |
Properties
View SourceDefaultCulture
Gets the system default culture.
Declaration
public string DefaultCulture { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Implementations must NOT return a null value. Return an empty string for the invariant culture.