Class ColorSwatchService
- Namespace
- Dynamicweb.Content.Items
- Assembly
- Dynamicweb.dll
The ColorSwatchService class providing methods for querying and saving the area ColorSwatch Aggregate to and from persistence.
public class ColorSwatchService : ICacheStorage<int, IDictionary<string, string>>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
ColorSwatchService
- Implements
- Inherited Members
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
intKey to reset
Delete(int)
Delete area color swatch.
public void Delete(int areaId)
Parameters
areaId
intThe area id.
GetColorSwatch(int)
Gets area color swatch.
public ColorSwatch GetColorSwatch(int areaId)
Parameters
areaId
intThe area id.
Returns
GetHexColor(int, string)
Gets hex value of color.
public string GetHexColor(int areaId, string colorName)
Parameters
Returns
Save(ColorSwatch)
Saves the colorSwatch.
public void Save(ColorSwatch colorSwatch)
Parameters
colorSwatch
ColorSwatchThe area color swatch.