Class OperationKeySerializer
Serializes an operation to reference an operation for future complete, cancel, or split operations; or other operations in custom providers.
Inheritance
System.Object
    OperationKeySerializer
  Namespace: Mediachase.Commerce.InventoryService.BusinessLogic
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public class OperationKeySerializer : ObjectConstructors
OperationKeySerializer()
Declaration
public OperationKeySerializer()Fields
MaxOperationKeyLength
Declaration
public static readonly int MaxOperationKeyLengthField Value
| Type | Description | 
|---|---|
| System.Int32 | 
Properties
OperationKeyVersion
Gets the operation key version. Override to indicate custom serialization/deserialization other than the default ones.
Declaration
public virtual byte OperationKeyVersion { get; }Property Value
| Type | Description | 
|---|---|
| System.Byte | The operation key version. | 
Methods
Serialize(InventoryRequestType, InventoryChange)
Declaration
public virtual string Serialize(InventoryRequestType requestType, InventoryChange change)Parameters
| Type | Name | Description | 
|---|---|---|
| InventoryRequestType | requestType | |
| InventoryChange | change | 
Returns
| Type | Description | 
|---|---|
| System.String | 
TryDeserialize(String, out InventoryRequestType, out InventoryChange)
Tries to deserialize the string value to InventoryRequestType and InventoryChange.
Declaration
public virtual bool TryDeserialize(string value, out InventoryRequestType requestType, out InventoryChange change)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | String value to deserialize. | 
| InventoryRequestType | requestType | Output InventoryRequestType. | 
| InventoryChange | change | Output InventoryChange. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
