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

Class RequestProcessor

Process an inventory request.

Inheritance
System.Object
RequestProcessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.InventoryService.BusinessLogic
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class RequestProcessor

Constructors

RequestProcessor(IInventoryService, OperationKeySerializer, InventoryRequest)

Creates a new instance of RequestProcessor.

Declaration
public RequestProcessor(IInventoryService inventoryService, OperationKeySerializer operationKeySerializer, InventoryRequest request)
Parameters
Type Name Description
IInventoryService inventoryService
OperationKeySerializer operationKeySerializer
InventoryRequest request

Properties

IsValid

Gets true if the request is well formed; otherwise, false.

Declaration
public virtual bool IsValid { get; protected set; }
Property Value
Type Description
System.Boolean
Remarks

This value only indicates if the request can be processed, and not if the request has been successfully processed.

Methods

CreateItemProcessor(InventoryRequestItem)

Declaration
protected virtual RequestItemProcessor CreateItemProcessor(InventoryRequestItem requestItem)
Parameters
Type Name Description
InventoryRequestItem requestItem
Returns
Type Description
RequestItemProcessor

CreateItemProcessors()

Declaration
protected virtual bool CreateItemProcessors()
Returns
Type Description
System.Boolean

GetInvalidResponse()

Gets a InventoryResponse instance when the request is invalid.

Declaration
public virtual InventoryResponse GetInvalidResponse()
Returns
Type Description
InventoryResponse

An instance of InventoryResponse that is appropriate for invalid InventoryRequest values.

Process()

Processes the request.

Declaration
public virtual ProcessorResult Process()
Returns
Type Description
ProcessorResult

An ProcessorResult containing the results of the processing.