Class UserOrderCacheManager
This class retrieve orders for an user within a number of days, it also provide caching.
Inheritance
System.Object
UserOrderCacheManager
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: EPiServer.Business.Commerce.VisitorGroupsCriteria
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class UserOrderCacheManager
Properties
Instance
Declaration
public static UserOrderCacheManager Instance { get; }
Property Value
Type | Description |
---|---|
UserOrderCacheManager |
Methods
GetPurchaseOrders(Int32, Guid)
Gets the purchase orders for this user from cache or from database.
Declaration
public IList<PurchaseOrder> GetPurchaseOrders(int days, Guid userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | days | The number of days within which to retrieve user orders. |
System.Guid | userId | The user GUID. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<PurchaseOrder> |
GetPurchaseOrders(Int32, IPrincipal)
Gets the purchase orders for this user from cache or from database.
Declaration
public IList<PurchaseOrder> GetPurchaseOrders(int days, IPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | days | The number of days within which to retrieve user orders. |
System.Security.Principal.IPrincipal | principal | The principal. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<PurchaseOrder> |