Class DistributedCacheNotificationHandlerBase<TEntity, TNotification>
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance
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(IEnumerable<TEntity>)
Handles the specified entities.
Declaration
[Obsolete("Please use the overload taking all parameters. Scheduled for removal in Umbraco 18.")]
protected abstract void Handle(IEnumerable<TEntity> entities)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TEntity> | entities | The entities. |
Handle(IEnumerable<TEntity>, IDictionary<string, object?>)
Handles the specified entities.
Declaration
protected virtual void Handle(IEnumerable<TEntity> entities, IDictionary<string, object?> state)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TEntity> | entities | The entities. |
| IDictionary<string, object> | state | The notification state. |
Handle(IEnumerable<TNotification>)
Handles the notifications.
Declaration
public void Handle(IEnumerable<TNotification> notifications)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TNotification> | notifications | The notifications. |
Handle(TNotification)
Handles a notification.
Declaration
public void Handle(TNotification notification)
Parameters
| Type | Name | Description |
|---|---|---|
| TNotification | notification | The notification. |