Class MediaTypeChangedDistributedCacheNotificationHandler
Defines a handler for a TNotification
that triggers a distributed cache refresher.
Inheritance
System.Object
DistributedCacheNotificationHandlerBase <ContentTypeChange <IMediaType >, MediaTypeChangedNotification >
ContentTypeChangedDistributedCacheNotificationHandlerBase <ContentTypeChange <IMediaType >, MediaTypeChangedNotification , IMediaType >
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaTypeChangedDistributedCacheNotificationHandler : ContentTypeChangedDistributedCacheNotificationHandlerBase<IMediaType, MediaTypeChangedNotification>, IDistributedCacheNotificationHandler<MediaTypeChangedNotification>, INotificationHandler<MediaTypeChangedNotification>, IDistributedCacheNotificationHandler, INotificationHandler
Constructors
View SourceMediaTypeChangedDistributedCacheNotificationHandler(DistributedCache)
Initializes a new instance of the Media
Declaration
public MediaTypeChangedDistributedCacheNotificationHandler(DistributedCache distributedCache)
Parameters
Type | Name | Description |
---|---|---|
Distributed |
distributedCache | The distributed cache. |
Methods
View SourceHandle(IEnumerable<ContentTypeChange<IMediaType>>)
Handles the specified entities.
Declaration
protected override void Handle(IEnumerable<ContentTypeChange<IMediaType>> entities)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Content |
entities |