Class InventoryRequest

Represents a request for the inventory system.

Inheritance
System.Object
InventoryRequest
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
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class InventoryRequest

Constructors

InventoryRequest()

Creates an instance of InventoryRequest.

Declaration
public InventoryRequest()

InventoryRequest(InventoryRequest)

Creates a new instance of InventoryRequest as a deep copy of another InventoryRequest.

Declaration
public InventoryRequest(InventoryRequest other)
Parameters
Type Name Description
InventoryRequest other

The InventoryRequest to copy.

InventoryRequest(DateTime, IList<InventoryRequestItem>, Nullable<Guid>, Object)

Creates a new instance of InventoryRequest with the specified values.

Declaration
[Obsolete("Use the overload method without ProviderKey instead. Will remain at least until November 2016.")]
public InventoryRequest(DateTime requestDateUtc, IList<InventoryRequestItem> items, Guid? providerKey, object context)
Parameters
Type Name Description
System.DateTime requestDateUtc

The value for RequestDateUtc.

System.Collections.Generic.IList<InventoryRequestItem> items

The value for Items.

System.Nullable<System.Guid> providerKey

The value for ProviderKey.

System.Object context

The value for Context.

InventoryRequest(DateTime, IList<InventoryRequestItem>, Object)

Creates a new instance of InventoryRequest with the specified values.

Declaration
public InventoryRequest(DateTime requestDateUtc, IList<InventoryRequestItem> items, object context)
Parameters
Type Name Description
System.DateTime requestDateUtc

The value for RequestDateUtc.

System.Collections.Generic.IList<InventoryRequestItem> items

The value for Items.

System.Object context

The value for Context.

Properties

Context

Gets or sets additional provider-specific data for the request.

Declaration
public virtual object Context { get; set; }
Property Value
Type Description
System.Object

Items

Gets or sets a collection of InventoryRequestItem values.

Declaration
public virtual IList<InventoryRequestItem> Items { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<InventoryRequestItem>

ProviderKey

Gets or sets an identifier for a provider to ensure correct interpretation of context and/or operation key values.

Declaration
[Obsolete("This property is no longer used. Will remain at least until November 2016.")]
public virtual Guid? ProviderKey { get; set; }
Property Value
Type Description
System.Nullable<System.Guid>

RequestDateUtc

Gets or sets the request date, in UTC.

Declaration
public virtual DateTime RequestDateUtc { get; set; }
Property Value
Type Description
System.DateTime