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
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
keysIEnumerable<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
keystringKey to reset
Delete(Rounding)
Deletes a rounding
public virtual void Delete(Rounding rounding)
Parameters
roundingRoundingRounding instance to delete
GetRoundingById(string)
Gets a rounding by id
public virtual Rounding? GetRoundingById(string id)
Parameters
idstringIdentifier of the rounding
Returns
- Rounding
Rounding instance, if found; otherwise, null.
GetRoundings()
Gets all roundings
public virtual IEnumerable<Rounding> GetRoundings()
Returns
Save(Rounding)
Saves a rounding
public virtual void Save(Rounding rounding)
Parameters
roundingRoundingRounding instance to save
SetCacheType<TObjectCache>()
Changes the storage container
public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, Rounding>
Type Parameters
TObjectCache