Class MediaTreeChangeDistributedCacheNotificationHandler
Defines a handler for a TNotification that triggers a distributed cache refresher.
Inheritance
System.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, INotificationHandlerConstructors
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
protected override void Handle(IEnumerable<TreeChange<IMedia>> entities)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<TreeChange<IMedia>> | entities |