Class MediaTypeChangedDistributedCacheNotificationHandler
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
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 MediaTypeChangedDistributedCacheNotificationHandler class.
Declaration
public MediaTypeChangedDistributedCacheNotificationHandler(DistributedCache distributedCache)
Parameters
| Type | Name | Description |
|---|---|---|
| DistributedCache | distributedCache | The distributed cache. |
Methods
View SourceHandle(IEnumerable<ContentTypeChange<IMediaType>>)
Handles the specified entities.
Declaration
[Obsolete("Scheduled for removal in Umbraco 18.")]
protected override void Handle(IEnumerable<ContentTypeChange<IMediaType>> entities)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ContentTypeChange<IMediaType>> | entities | The entities. |
Handle(IEnumerable<ContentTypeChange<IMediaType>>, IDictionary<string, object?>)
Handles the specified entities.
Declaration
protected override void Handle(IEnumerable<ContentTypeChange<IMediaType>> entities, IDictionary<string, object?> state)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ContentTypeChange<IMediaType>> | entities | The entities. |
| IDictionary<string, object> | state | The notification state. |