Class ContentTypeRefreshNotification<T>
Abstract base class for notifications related to content type cache refresh operations.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class ContentTypeRefreshNotification<T> : ContentTypeChangeNotification<T>, IStatefulNotification, INotification where T : class, IContentTypeComposition
Type Parameters
| Name | Description |
|---|---|
| T | The type of content type composition. |
Remarks
This notification is used internally for cache synchronization when content types are modified.
Constructors
View SourceContentTypeRefreshNotification(IEnumerable<ContentTypeChange<T>>, EventMessages)
Initializes a new instance of the ContentTypeRefreshNotification<T> class with multiple content type changes.
Declaration
protected ContentTypeRefreshNotification(IEnumerable<ContentTypeChange<T>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ContentTypeChange<T>> | target | The collection of content type changes that occurred. |
| EventMessages | messages | The event messages collection. |
ContentTypeRefreshNotification(ContentTypeChange<T>, EventMessages)
Initializes a new instance of the ContentTypeRefreshNotification<T> class with a single content type change.
Declaration
protected ContentTypeRefreshNotification(ContentTypeChange<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentTypeChange<T> | target | The content type change that occurred. |
| EventMessages | messages | The event messages collection. |