Search Results for

    Show / Hide Table of Contents
    View Source

    Class DistributedCacheNotificationHandlerBase<TEntity, TNotification>

    Defines a handler for a TNotification that triggers a distributed cache refresher.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class DistributedCacheNotificationHandlerBase<TEntity, TNotification> : IDistributedCacheNotificationHandler<TNotification>, INotificationHandler<TNotification>, IDistributedCacheNotificationHandler, INotificationHandler where TNotification : INotification
    Type Parameters
    Name Description
    TEntity

    The type of the entity.

    TNotification

    The type of the notification.

    Methods

    View Source

    GetEntities(TNotification)

    Gets the entities from the specified notification.

    Declaration
    protected abstract IEnumerable<TEntity> GetEntities(TNotification notification)
    Parameters
    Type Name Description
    TNotification notification

    The notification.

    Returns
    Type Description
    IEnumerable<TEntity>

    The entities.

    View Source

    Handle(TNotification)

    Handles a notification.

    Declaration
    public void Handle(TNotification notification)
    Parameters
    Type Name Description
    TNotification notification

    The notification.

    View Source

    Handle(IEnumerable<TEntity>)

    Handles the specified entities.

    Declaration
    protected abstract void Handle(IEnumerable<TEntity> entities)
    Parameters
    Type Name Description
    IEnumerable<TEntity> entities

    The entities.

    View Source

    Handle(IEnumerable<TNotification>)

    Handles the notifications.

    Declaration
    public void Handle(IEnumerable<TNotification> notifications)
    Parameters
    Type Name Description
    IEnumerable<TNotification> notifications

    The notifications.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetEntities(TNotification)
      • Handle(TNotification)
      • Handle(IEnumerable<TEntity>)
      • Handle(IEnumerable<TNotification>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX