CacheRefresher Notifications Example
Example of how to use a CacheRefresher Notification
public abstract class CacheRefresherNotification : INotification
{
public CacheRefresherNotification(object messageObject, MessageType messageType)
{
MessageObject = messageObject ?? throw new ArgumentNullException(nameof(messageObject));
MessageType = messageType;
}
public object MessageObject { get; }
public MessageType MessageType { get; }
}public enum MessageType
{
RefreshAll,
RefreshById,
RefreshByJson,
RemoveById,
RefreshByInstance,
RemoveByInstance,
RefreshByPayload,
}Last updated
Was this helpful?