Table of Contents

Class RoundingService

Namespace
Dynamicweb.Ecommerce.Prices
Assembly
Dynamicweb.Ecommerce.dll

Rounding service provides operations for working with the rounding model

public class RoundingService : ICacheStorage<string, Rounding>, ICacheStorage<string>, ICacheStorage
Inheritance
RoundingService
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

Delete(Rounding)

Deletes a rounding

public virtual void Delete(Rounding rounding)

Parameters

rounding Rounding

Rounding instance to delete

GetRoundingById(string)

Gets a rounding by id

public virtual Rounding? GetRoundingById(string id)

Parameters

id string

Identifier of the rounding

Returns

Rounding

Rounding instance, if found; otherwise, null.

GetRoundings()

Gets all roundings

public virtual IEnumerable<Rounding> GetRoundings()

Returns

IEnumerable<Rounding>

Save(Rounding)

Saves a rounding

public virtual void Save(Rounding rounding)

Parameters

rounding Rounding

Rounding instance to save

SetCacheType<TObjectCache>()

Changes the storage container

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

Type Parameters

TObjectCache
To top