Class StockPlacementExtensions

Gets inventories for a IStockPlacement implementation.

Inheritance
System.Object
StockPlacementExtensions
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.Commerce.Catalog.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public static class StockPlacementExtensions

Methods

GetStockPlacement(IStockPlacement)

Gets the inventories

Declaration
public static ItemCollection<Inventory> GetStockPlacement(this IStockPlacement stockPlacement)
Parameters
Type Name Description
IStockPlacement stockPlacement

The inventory implementation

Returns
Type Description
ItemCollection<Inventory>

Collection of prices.

Remarks

This method uses the EPiServer.ServiceLocation.ServiceLocator to resolve the InventoryLoader, which will be send to the method that contains an inventory loader.

GetStockPlacement(IStockPlacement, InventoryLoader)

Gets the inventories

Declaration
public static ItemCollection<Inventory> GetStockPlacement(this IStockPlacement stockPlacement, InventoryLoader inventoryLoader)
Parameters
Type Name Description
IStockPlacement stockPlacement

The inventory implementation

InventoryLoader inventoryLoader

The inventory loader.

Returns
Type Description
ItemCollection<Inventory>

Collection of prices.