Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    PayloadCacheRefresherBase(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 Source

    Refresh(TPayload[])

    Refreshes as specified by a payload.

    Declaration
    public virtual void Refresh(TPayload[] payloads)
    Parameters
    Type Name Description
    TPayload[] payloads

    The payload.

    View Source

    Refresh(String)

    Declaration
    public override void Refresh(string json)
    Parameters
    Type Name Description
    System.String json
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PayloadCacheRefresherBase(AppCaches, IJsonSerializer, IEventAggregator, ICacheRefresherNotificationFactory)
    • Methods
      • Refresh(TPayload[])
      • Refresh(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX