London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class CustomerConfiguration

Customer Configuration

Inheritance
System.Object
CustomerConfiguration
Namespace: Mediachase.Commerce.Customers.Configuration
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class CustomerConfiguration : ConfigurationSection

Properties

AutoInstall

Gets a value indicating whether to automatically install metadata definitions for entities related to customers/contacts.

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

true if automatic install should happen; otherwise, false.

Cache

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

Declaration
[Obsolete("This setting is no longer used. Use CustomerOptions. Will remain at least until July 2021")]
public CustomerCacheElement Cache { get; }
Property Value
Type Description
CustomerCacheElement

The cache.

Connection

Gets the connection.

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

The connection.

DemoInstall

Gets a value indicating whether to automatically install sample customers in the system.

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

true if customers should be created; otherwise, false.

Instance

Singleton instance

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

The instance.

Roles

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

Declaration
[Obsolete("Roles defined in config files are no longer used, for access control Permissions-to-functions from Episerver CMS is used instead. Will remain at least until January 2019")]
public RoleElementCollection Roles { get; }
Property Value
Type Description
RoleElementCollection

The mapped types.

Methods

GetRole(String)

Returns class names mapped to the event key (name)

Declaration
[Obsolete("Roles defined in config files are no longer used, for access control Permissions-to-functions from Episerver CMS is used instead. Will remain at least until January 2019")]
public RoleDefinitionElement GetRole(string key)
Parameters
Type Name Description
System.String key

The key.

Returns
Type Description
RoleDefinitionElement