Class PayloadCacheRefresherBase<TNotification, TPayload>
A base class for "payload" class refreshers.
Inheritance
System.Object
CacheRefresherBase<TNotification>
JsonCacheRefresherBase<TNotification, TPayload>
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public abstract class PayloadCacheRefresherBase<TNotification, TPayload> : JsonCacheRefresherBase<TNotification, TPayload>, IPayloadCacheRefresher<TPayload>, IJsonCacheRefresher, ICacheRefresher, IDiscoverable where TNotification : CacheRefresherNotification
Type Parameters
Name | Description |
---|---|
TNotification | The notification type |
TPayload | The payload type. |
Remarks
The actual cache refresher type is used for strongly typed events.
Constructors
View SourcePayloadCacheRefresherBase(AppCaches, IJsonSerializer, IEventAggregator, ICacheRefresherNotificationFactory)
Initializes a new instance of the PayloadCacheRefresherBase<TNotification, TPayload>.
Declaration
protected PayloadCacheRefresherBase(AppCaches appCaches, IJsonSerializer serializer, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory)
Parameters
Type | Name | Description |
---|---|---|
AppCaches | appCaches | A cache helper. |
IJsonSerializer | serializer | |
IEventAggregator | eventAggregator | |
ICacheRefresherNotificationFactory | factory |
Methods
View SourceRefresh(TPayload[])
Refreshes as specified by a payload.
Declaration
public virtual void Refresh(TPayload[] payloads)
Parameters
Type | Name | Description |
---|---|---|
TPayload[] | payloads | The payload. |
Refresh(String)
Declaration
public override void Refresh(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json |