Table of Contents

Class StockUnitService

Namespace
Dynamicweb.Ecommerce.Stocks
Assembly
Dynamicweb.Ecommerce.dll
public class StockUnitService : ICacheStorage<string, ConcurrentDictionary<string, StockUnit>>, ICacheStorage<string>, ICacheStorage
Inheritance
StockUnitService
Implements
Inherited Members

Properties

Info

Information about the object cache

public virtual CacheInformation Info { get; }

Property Value

CacheInformation

Methods

ClearCache()

Resets all keys to the default value for objects stored in the object cache

public virtual void ClearCache()

ClearCache(IEnumerable<string>)

Resets the specified keys to the default value for objects stored in the object cache

public virtual void ClearCache(IEnumerable<string> keys)

Parameters

keys IEnumerable<string>

Keys to reset

ClearCache(string)

Resets the specified key to the default value for objects stored in the object cache

public virtual void ClearCache(string key)

Parameters

key string

Key to reset

GetStockUnitById(int)

public virtual StockUnit? GetStockUnitById(int id)

Parameters

id int

Returns

StockUnit

MoveStockUnits(IEnumerable<ProductVariantMoveSetting>)

public virtual void MoveStockUnits(IEnumerable<ProductVariantMoveSetting> stockUnitsMoveSettings)

Parameters

stockUnitsMoveSettings IEnumerable<ProductVariantMoveSetting>

SetCacheType<TObjectCache>()

Changes the storage container

public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, ConcurrentDictionary<string, StockUnit>>

Type Parameters

TObjectCache
To top