Class ContentModuleConfigurationService
- Namespace
- Dynamicweb.Modules
- Assembly
- Dynamicweb.dll
Provides methods for querying content module configuration information.
public sealed class ContentModuleConfigurationService : ICacheStorage<int, ContentModuleConfiguration>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
ContentModuleConfigurationService
- 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 content module configuration by Id.
public bool Delete(int id)
Parameters
id
intThe content module configuration Id
Returns
GetContentModuleConfigurationById(int)
Get content module configuration by Id.
public ContentModuleConfiguration? GetContentModuleConfigurationById(int id)
Parameters
id
intThe content module configuration Id
Returns
GetContentModuleConfigurationByUniqueId(Guid)
Get content module configuration by UniqueId.
public static ContentModuleConfiguration? GetContentModuleConfigurationByUniqueId(Guid uniqueId)
Parameters
uniqueId
GuidThe content module configuration UniqueId
Returns
GetContentModuleConfigurations()
Get all content module configurations.
public IEnumerable<ContentModuleConfiguration> GetContentModuleConfigurations()
Returns
Save(ContentModuleConfiguration)
Add new or update existing content module configuration.
public void Save(ContentModuleConfiguration contentModuleConfiguration)
Parameters
contentModuleConfiguration
ContentModuleConfigurationThe content module configuration