Class MediaTreeChangeDistributedCacheNotificationHandler
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
TreeChangeDistributedCacheNotificationHandlerBase<TreeChange<IMedia>, MediaTreeChangeNotification, IMedia>
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaTreeChangeDistributedCacheNotificationHandler : TreeChangeDistributedCacheNotificationHandlerBase<IMedia, MediaTreeChangeNotification>, IDistributedCacheNotificationHandler<MediaTreeChangeNotification>, INotificationHandler<MediaTreeChangeNotification>, IDistributedCacheNotificationHandler, INotificationHandler
Constructors
View SourceMediaTreeChangeDistributedCacheNotificationHandler(DistributedCache)
Initializes a new instance of the MediaTreeChangeDistributedCacheNotificationHandler class.
Declaration
public MediaTreeChangeDistributedCacheNotificationHandler(DistributedCache distributedCache)
Parameters
| Type | Name | Description |
|---|---|---|
| DistributedCache | distributedCache | The distributed cache. |
Methods
View SourceHandle(IEnumerable<TreeChange<IMedia>>)
Handles the specified entities.
Declaration
[Obsolete("Scheduled for removal in Umbraco 18.")]
protected override void Handle(IEnumerable<TreeChange<IMedia>> entities)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TreeChange<IMedia>> | entities | The entities. |
Handle(IEnumerable<TreeChange<IMedia>>, IDictionary<string, object?>)
Handles the specified entities.
Declaration
protected override void Handle(IEnumerable<TreeChange<IMedia>> entities, IDictionary<string, object?> state)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TreeChange<IMedia>> | entities | The entities. |
| IDictionary<string, object> | state | The notification state. |