Class DefaultCultureAccessor
Provides the default implementation of IDefaultCultureAccessor.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PublishedCache
Assembly: Umbraco.Core.dll
Syntax
public class DefaultCultureAccessor : IDefaultCultureAccessor
Constructors
View SourceDefaultCultureAccessor(ILocalizationService, IRuntimeState, IOptionsMonitor<GlobalSettings>)
Initializes a new instance of the DefaultCultureAccessor class.
Declaration
public DefaultCultureAccessor(ILocalizationService localizationService, IRuntimeState runtimeState, IOptionsMonitor<GlobalSettings> options)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizationService | localizationService | |
| IRuntimeState | runtimeState | |
| IOptionsMonitor<GlobalSettings> | options |
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.