Table of Contents

Class TrackAndTraceService

Namespace
Dynamicweb.Ecommerce.Orders
Assembly
Dynamicweb.Ecommerce.dll
public class TrackAndTraceService : ICacheStorage<int, TrackAndTrace>, ICacheStorage<int>, ICacheStorage
Inheritance
TrackAndTraceService
Implements
Inherited Members

Properties

Info

Information about the object cache

public CacheInformation Info { get; }

Property Value

CacheInformation

Methods

ClearCache()

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

public void ClearCache()

ClearCache(IEnumerable<int>)

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

public void ClearCache(IEnumerable<int> keys)

Parameters

keys IEnumerable<int>

Keys to reset

ClearCache(int)

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

public void ClearCache(int key)

Parameters

key int

Key to reset

Delete(TrackAndTrace)

Deletes a given track and trace configuration.

public virtual void Delete(TrackAndTrace trackAndTrace)

Parameters

trackAndTrace TrackAndTrace

Track and trace configuration to delete.

GetTrackAndTraceById(int)

Gets a track and trace configuration by id.

public virtual TrackAndTrace GetTrackAndTraceById(int id)

Parameters

id int

Track and trace identifier.

Returns

TrackAndTrace

An instance of TrackAndTrace, if found; otherwise, null.

GetTrackAndTraces()

Gets all track and trace configurations.

public virtual IEnumerable<TrackAndTrace> GetTrackAndTraces()

Returns

IEnumerable<TrackAndTrace>

Save(TrackAndTrace)

Saves a given track and trace configuration.

public virtual void Save(TrackAndTrace trackAndTrace)

Parameters

trackAndTrace TrackAndTrace

Track and trace configuration to save.

SetCacheType<TObjectCache>()

Changes the storage container

public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, TrackAndTrace>

Type Parameters

TObjectCache
To top