Class RequestProcessor
Process an inventory request.
Inheritance
System.Object
RequestProcessor
Namespace: Mediachase.Commerce.InventoryService.BusinessLogic
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public class RequestProcessor : Object
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. |