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

Class CatalogConfiguration

Implemented as a thread-safe singleton class

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

Properties

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. No longer used.

Declaration
[Obsolete("The old image system based on MetaData Plus is obsolete. You should use the new asset/media system in Episerver CMS instead. Will remain at least until January 2019")]
public EncodingSettings EncodingSettings { get; }
Property Value
Type Description
EncodingSettings

The encoding settings.

Events

Collection of EventDefinition instances defined in the config file

Declaration
[Obsolete("This setting is no longer used. Will remain at least until January 2019")]
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

Maps roles in Commerce Manager (the name) to a custom string (the value) for UI purposes. This setting is no longer used.

Declaration
[Obsolete("This setting is no longer used. Will remain at least until January 2019")]
public RoleCollection Roles { get; }
Property Value
Type Description
RoleCollection

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 roles mapped to the key (name)

Declaration
[Obsolete("This method is no longer used. Will remain at least until January 2019")]
public RoleDefinition GetRole(string key)
Parameters
Type Name Description
System.String key

The key.

Returns
Type Description
RoleDefinition

The corresponding RoleDefinition if it exists; otherwise null.