Class ContentTypeChangedDistributedCacheNotificationHandlerBase<TEntity, TNotification>
Defines a handler for a TNotification
that triggers a distributed cache refresher.
Inheritance
System.Object
DistributedCacheNotificationHandlerBase<ContentTypeChange<TEntity>, TNotification>
ContentTypeChangedDistributedCacheNotificationHandlerBase<ContentTypeChange<TEntity>, TNotification, TEntity>
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public abstract class ContentTypeChangedDistributedCacheNotificationHandlerBase<TEntity, TNotification> : ContentTypeChangedDistributedCacheNotificationHandlerBase<ContentTypeChange<TEntity>, TNotification, TEntity>, IDistributedCacheNotificationHandler<TNotification>, INotificationHandler<TNotification>, IDistributedCacheNotificationHandler, INotificationHandler where TEntity : class, IContentTypeComposition where TNotification : ContentTypeChangeNotification<TEntity>
Type Parameters
Name | Description |
---|---|
TEntity | The type of the entity. |
TNotification | The type of the notification. |
Methods
View SourceGetEntities(TNotification)
Gets the entities from the specified notification.
Declaration
protected override IEnumerable<ContentTypeChange<TEntity>> GetEntities(TNotification notification)
Parameters
Type | Name | Description |
---|---|---|
TNotification | notification | The notification. |
Returns
Type | Description |
---|---|
IEnumerable<ContentTypeChange<TEntity>> | The entities. |