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

Class CoreConfiguration

Implemented as a thread-safe singleton class

Inheritance
System.Object
CoreConfiguration
Namespace: Mediachase.Commerce.Core
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public sealed class CoreConfiguration : ConfigurationSection

Properties

CacheConfig

Configuration element which contains cache enable settings.

Declaration
public CacheConfiguration CacheConfig { get; }
Property Value
Type Description
CacheConfiguration

The cache config.

Connection

Configuration element which contains database connection string name

Declaration
public CoreConnection Connection { get; }
Property Value
Type Description
CoreConnection

The connection.

DefaultApplicationName

Root configuration attribute which defines default value used for application name

Declaration
public string DefaultApplicationName { get; set; }
Property Value
Type Description
System.String

The default name of the application.

Features

Gets the features.

Declaration
public FeaturesCollection Features { get; }
Property Value
Type Description
FeaturesCollection

The features.

Instance

Singleton instance

Declaration
public static CoreConfiguration Instance { get; }
Property Value
Type Description
CoreConfiguration

The instance.

Languages

Gets the languages.

Declaration
[Obsolete("The static language configuration is no longer used, language definitions in Episerver CMS are used instead. Will remail at least until January 2019")]
public LanguageCollection Languages { get; }
Property Value
Type Description
LanguageCollection

The languages.

Roles

Configuration element defines the mapping of mapped types to type names specified in configuration file

Declaration
public RoleCollection Roles { get; }
Property Value
Type Description
RoleCollection

The mapped types.

Methods

GetFeature(String)

Gets the feature.

Declaration
public FeaturesDefinition GetFeature(string feature)
Parameters
Type Name Description
System.String feature

The feature.

Returns
Type Description
FeaturesDefinition

GetLanguage(String)

Gets the language.

Declaration
[Obsolete("The static language configuration is no longer used, language definitions in Episerver CMS are used instead. Will remail at least until January 2019")]
public LanguageDefinition GetLanguage(string key)
Parameters
Type Name Description
System.String key

The key.

Returns
Type Description
LanguageDefinition

GetRole(String)

Returns class names mapped to the event key (name)

Declaration
public RoleDefinition GetRole(string key)
Parameters
Type Name Description
System.String key

The key.

Returns
Type Description
RoleDefinition

IsReadOnly()

Gets a value indicating whether the System.Configuration.ConfigurationElement object is read-only.

Declaration
public override bool IsReadOnly()
Returns
Type Description
System.Boolean

true if the System.Configuration.ConfigurationElement object is read-only; otherwise, false.