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

Class MarketingConfiguration

Implemented as a thread-safe singleton class

Inheritance
System.Object
MarketingConfiguration
Namespace: Mediachase.Commerce.Marketing
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public sealed class MarketingConfiguration : ConfigurationSection

Properties

ApplicationId

Unique identifier for application.

Declaration
[Obsolete("The concept of ApplicationID has been removed - ignore this property. Will remain at least until August 2018.")]
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