uCommerce Reference
OrderContext Class
NamespacesUCommerce.RuntimeOrderContext
Default implementation of IOrderContext
Declaration Syntax
C#Visual BasicVisual C++
public class OrderContext : IOrderContext
Public Class OrderContext _
	Implements IOrderContext
public ref class OrderContext : IOrderContext
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
OrderContext(ICatalogContext, IRepository<(Of <<'(PurchaseOrder>)>>), IPipeline<(Of <<'(IPipelineArgs<(Of <<'(GetBasketRequest, GetBasketResponse>)>>)>)>>), IPipeline<(Of <<'(IPipelineArgs<(Of <<'(CreateBasketRequest, CreateBasketResponse>)>>)>)>>))
Initializes a new instance of the OrderContext class

CatalogContext
ClearBasketInformation()()()()
Clears cookies and session information deleting the current basket for the customer. BasketId of the basket is also zeroed out.

CreateBasket(Currency)
CreateBasket()()()()
Creates the basket.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetBasket()()()()
Gets the user's basket. If the user does not have a basket one will be created.

GetBasket(Boolean)
Gets the user's basket. If the user does not have a basket one will be created.

GetBasket(Guid)
Gets a specific basket by its id

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasBasket
Gets a value indicating whether or not the current user has a basket.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NewBasket(Currency)
Crates a new Basket for the Customer.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
Will try to create baskets based on the current ICatalogContext. Persistent baskets are stored in cookies or in session as a fallback if cookies are unavailable.
Inheritance Hierarchy
Object
OrderContext

Assembly: UCommerce (Module: UCommerce) Version: 6.8.2.15287 (6.8.2.15287)