Class ContentModuleConfigurationService
- Namespace
- Dynamicweb.Modules
- Assembly
- Dynamicweb.dll
Provides methods for querying content module configuration information.
public class ContentModuleConfigurationService : ICacheStorage<int, ContentModuleConfiguration>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
ContentModuleConfigurationService
- 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<int>)
Resets the specified keys to the default value for objects stored in the object cache
public virtual void ClearCache(IEnumerable<int> keys)
Parameters
keysIEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public virtual void ClearCache(int key)
Parameters
keyintKey to reset
Delete(int)
Delete content module configuration by Id.
public virtual bool Delete(int id)
Parameters
idintThe content module configuration Id
Returns
GetByUniqueId(Guid)
Get content module configuration by UniqueId.
public virtual ContentModuleConfiguration? GetByUniqueId(Guid uniqueId)
Parameters
uniqueIdGuidThe content module configuration UniqueId
Returns
GetContentModuleConfigurationById(int)
Get content module configuration by Id.
public virtual ContentModuleConfiguration? GetContentModuleConfigurationById(int id)
Parameters
idintThe content module configuration Id
Returns
GetContentModuleConfigurations()
Get all content module configurations.
public virtual IEnumerable<ContentModuleConfiguration> GetContentModuleConfigurations()
Returns
Save(ContentModuleConfiguration)
Add new or update existing content module configuration.
public virtual void Save(ContentModuleConfiguration contentModuleConfiguration)
Parameters
contentModuleConfigurationContentModuleConfigurationThe content module configuration
SetCacheType<TObjectCache>()
Changes the storage container
public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, ContentModuleConfiguration>
Type Parameters
TObjectCache