Class DistributedCacheNotificationHandlerBase<TEntity, TNotification>
Defines a handler for a TNotification
that triggers a distributed cache refresher.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public abstract class DistributedCacheNotificationHandlerBase<TEntity, TNotification> : IDistributedCacheNotificationHandler<TNotification>, INotificationHandler<TNotification>, IDistributedCacheNotificationHandler, INotificationHandler where TNotification : INotification
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 abstract IEnumerable<TEntity> GetEntities(TNotification notification)
Parameters
Type | Name | Description |
---|---|---|
TNotification | notification | The notification. |
Returns
Type | Description |
---|---|
IEnumerable<TEntity> | The entities. |
Handle(TNotification)
Handles a notification.
Declaration
public void Handle(TNotification notification)
Parameters
Type | Name | Description |
---|---|---|
TNotification | notification | The notification. |
Handle(IEnumerable<TEntity>)
Handles the specified entities.
Declaration
protected abstract void Handle(IEnumerable<TEntity> entities)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TEntity> | entities | The entities. |
Handle(IEnumerable<TNotification>)
Handles the notifications.
Declaration
public void Handle(IEnumerable<TNotification> notifications)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TNotification> | notifications | The notifications. |