Class CatalogConfiguration

Implemented as a thread-safe singleton class

Inheritance
System.Object
CatalogConfiguration
Namespace: Mediachase.Commerce.Catalog
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public sealed class CatalogConfiguration : ConfigurationSection

Properties

ApplicationId

Unique identifier for application.

Declaration
[Obsolete("Use AppContext.Current.ApplicationId directly. Will remain at least until November 2016.")]
public Guid ApplicationId { get; }
Property Value
Type Description
System.Guid

The application id.

AutoConfigure

Root config attribute which determines whether to auto configure the Catalog System when first initialized.

Declaration
public bool AutoConfigure { get; }
Property Value
Type Description
System.Boolean

true if [auto configure]; otherwise, false.

Cache

Config settings which define where caching is enabled and timeouts related to it.

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

The cache.

Connection

Config setting which defines the database connection name

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

The connection.

EncodingSettings

Config settings which define the image quality and image encoding

Declaration
public EncodingSettings EncodingSettings { get; }
Property Value
Type Description
EncodingSettings

The encoding settings.

Events

Collection of EventDefinition instances defined in the config file

Declaration
public EventCollection Events { get; }
Property Value
Type Description
EventCollection

The events.

Instance

Singleton instance

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

The instance.

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.

SalePriceTypes

Configuration element defines Sale Price Types

Declaration
public SalePriceTypeCollection SalePriceTypes { get; }
Property Value
Type Description
SalePriceTypeCollection

The mapped types.

ShowVariationListPrice

Enables the display of the obsolete variation list price in the catalog entry edit UI.

Declaration
public bool ShowVariationListPrice { get; }
Property Value
Type Description
System.Boolean

Methods

ConfigureMetaData()

Retrieve metadata from the meta data engine and store in the MetaInstaller

Declaration
public static void ConfigureMetaData()

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