Class OrderConfiguration
Implemented as a thread-safe singleton class
Inheritance
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class OrderConfiguration : 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. |
AutoConfigure
Gets a value indicating whether to auto configure the Order System when first initialized.
Declaration
public bool AutoConfigure { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Cache
Config settings which define where caching is enabled and timeouts related to it.
Declaration
public CacheConfiguration Cache { get; }
Property Value
Type | Description |
---|---|
CacheConfiguration |
Connections
OrderConnection defines the database connection name
Declaration
public OrderConnection Connections { get; }
Property Value
Type | Description |
---|---|
OrderConnection |
Instance
Singleton instance
Declaration
public static OrderConfiguration Instance { get; }
Property Value
Type | Description |
---|---|
OrderConfiguration | The instance. |
MappedTypes
Gets the mapping of order-related entities to actual implementation classes.
Declaration
public MappedTypes MappedTypes { get; }
Property Value
Type | Description |
---|---|
MappedTypes | The mapped types. |
MetaClasses
Contains the names of meta classes for orders that are stored in the configuration file
Declaration
public OrderConfiguration.MetaClassNames MetaClasses { get; }
Property Value
Type | Description |
---|---|
OrderConfiguration.MetaClassNames | The meta classes. |
NewOrderStatus
Gets the new order status.
Declaration
public string NewOrderStatus { get; }
Property Value
Type | Description |
---|---|
System.String | The new order status. |
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. |
SensitiveDataMode
Gets the sensitive data mode, indicating if sensitive data (such as credit card number) should be removed, remain partially unmasked or be encrypted.
Declaration
public SensitiveDataPersistance SensitiveDataMode { get; }
Property Value
Type | Description |
---|---|
SensitiveDataPersistance | The sensitive data mode. |
ShipmentAutoReleaseTimeout
Gets or sets the shipment auto release timeout.
Declaration
public TimeSpan ShipmentAutoReleaseTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The shipment auto release timeout. |
Methods
ConfigureMetaData()
Configures the meta data.
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 |
IsReadOnly()
Gets a value indicating whether the System.Configuration.ConfigurationElement object is read-only.
Declaration
public override bool IsReadOnly()
Returns
Type | Description |
---|---|
System.Boolean | true if the System.Configuration.ConfigurationElement object is read-only; otherwise, false. |