Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IServerMessenger

    Transmits distributed cache notifications for all servers of a load balanced environment.

    Namespace: Umbraco.Cms.Core.Sync
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IServerMessenger
    Remarks

    Also ensures that the notification is processed on the local environment.

    Methods

    View Source

    QueueRefresh(ICacheRefresher, Guid[])

    Notifies all servers of specified items invalidation, for a specified ICacheRefresher.

    Declaration
    void QueueRefresh(ICacheRefresher refresher, params Guid[] guidIds)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    Guid[] guidIds

    The unique identifiers of the invalidated items.

    View Source

    QueueRefresh(ICacheRefresher, Int32[])

    Notifies all servers of specified items invalidation, for a specified ICacheRefresher.

    Declaration
    void QueueRefresh(ICacheRefresher refresher, params int[] numericIds)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    System.Int32[] numericIds

    The unique identifiers of the invalidated items.

    View Source

    QueueRefresh<TPayload>(ICacheRefresher, TPayload[])

    Notifies the distributed cache, for a specified ICacheRefresher.

    Declaration
    void QueueRefresh<TPayload>(ICacheRefresher refresher, TPayload[] payload)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    TPayload[] payload

    The notification content.

    Type Parameters
    Name Description
    TPayload
    View Source

    QueueRefresh<T>(ICacheRefresher, Func<T, Guid>, T[])

    Notifies the distributed cache of specified item invalidation, for a specified ICacheRefresher.

    Declaration
    void QueueRefresh<T>(ICacheRefresher refresher, Func<T, Guid> getGuidId, params T[] instances)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    Func<T, Guid> getGuidId

    A function returning the unique identifier of items.

    T[] instances

    The invalidated items.

    Type Parameters
    Name Description
    T

    The type of the invalidated items.

    View Source

    QueueRefresh<T>(ICacheRefresher, Func<T, Int32>, T[])

    Notifies the distributed cache of specified item invalidation, for a specified ICacheRefresher.

    Declaration
    void QueueRefresh<T>(ICacheRefresher refresher, Func<T, int> getNumericId, params T[] instances)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    Func<T, System.Int32> getNumericId

    A function returning the unique identifier of items.

    T[] instances

    The invalidated items.

    Type Parameters
    Name Description
    T

    The type of the invalidated items.

    View Source

    QueueRefreshAll(ICacheRefresher)

    Notifies all servers of a global invalidation for a specified ICacheRefresher.

    Declaration
    void QueueRefreshAll(ICacheRefresher refresher)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    View Source

    QueueRemove(ICacheRefresher, Int32[])

    Notifies all servers of specified items removal, for a specified ICacheRefresher.

    Declaration
    void QueueRemove(ICacheRefresher refresher, params int[] numericIds)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    System.Int32[] numericIds

    The unique identifiers of the removed items.

    View Source

    QueueRemove<T>(ICacheRefresher, Func<T, Int32>, T[])

    Notifies all servers of specified items removal, for a specified ICacheRefresher.

    Declaration
    void QueueRemove<T>(ICacheRefresher refresher, Func<T, int> getNumericId, params T[] instances)
    Parameters
    Type Name Description
    ICacheRefresher refresher

    The ICacheRefresher.

    Func<T, System.Int32> getNumericId

    A function returning the unique identifier of items.

    T[] instances

    The removed items.

    Type Parameters
    Name Description
    T

    The type of the removed items.

    View Source

    SendMessages()

    Called to send/commit the queued messages created with the Perform methods

    Declaration
    void SendMessages()
    View Source

    Sync()

    Called to synchronize a server with queued notifications

    Declaration
    void Sync()
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • QueueRefresh(ICacheRefresher, Guid[])
      • QueueRefresh(ICacheRefresher, Int32[])
      • QueueRefresh<TPayload>(ICacheRefresher, TPayload[])
      • QueueRefresh<T>(ICacheRefresher, Func<T, Guid>, T[])
      • QueueRefresh<T>(ICacheRefresher, Func<T, Int32>, T[])
      • QueueRefreshAll(ICacheRefresher)
      • QueueRemove(ICacheRefresher, Int32[])
      • QueueRemove<T>(ICacheRefresher, Func<T, Int32>, T[])
      • SendMessages()
      • Sync()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX