Class OrderConfiguration
Implemented as a thread-safe singleton class
Inheritance
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public class OrderConfiguration : ConfigurationSection
Properties
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. |
|
Cache
Config settings which define where caching is enabled and timeouts related to it.
Declaration
public CacheConfiguration Cache { get; }
Property Value
Type | Description |
---|---|
Cache |
Connections
OrderConnection defines the database connection name
Declaration
public OrderConnection Connections { get; }
Property Value
Type | Description |
---|---|
Order |
Instance
Singleton instance
Declaration
public static OrderConfiguration Instance { get; }
Property Value
Type | Description |
---|---|
Order |
The instance. |
MappedTypes
Gets the mapping of order-related entities to actual implementation classes.
Declaration
public MappedTypes MappedTypes { get; }
Property Value
Type | Description |
---|---|
Mapped |
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 |
---|---|
Order |
The meta classes. |
NewOrderStatus
Gets the new order status.
Declaration
public string NewOrderStatus { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|
Role |
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 |
---|---|
Sensitive |
The sensitive data mode. |
ShipmentAutoReleaseTimeout
Gets or sets the shipment auto release timeout.
Declaration
public TimeSpan ShipmentAutoReleaseTimeout { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
key | The key. |
Returns
Type | Description |
---|---|
Role |
IsReadOnly()
Gets a value indicating whether the System.
Declaration
public override bool IsReadOnly()
Returns
Type | Description |
---|---|
System. |
true if the System. |