Class MarketingConfiguration

Implemented as a thread-safe singleton class

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

Properties

ApplicationId

Unique identifier for application.

Declaration
public Guid ApplicationId { get; }
Property Value
Type Description
System.Guid

The application id.

CacheConfig

Configuration element defines where caching is enabled and timeouts related to it.

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

The cache config.

Connection

Configuration element defines the database connection string names.

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

The connection.

Instance

Singleton instance

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

The instance.

MappedTypes

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

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

The mapped types.

ReservationTimeout

Gets the reservation timeout in minutes for promotions.

Declaration
public int ReservationTimeout { get; }
Property Value
Type Description
System.Int32

The reservation timeout.

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

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