Search Results for

    Show / Hide Table of Contents
    View Source

    Class DistributedCacheNotificationHandlerBase<TEntity, TNotification>

    Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

    Inheritance
    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(IEnumerable<TEntity>)

    Handles the specified entities.

    Declaration
    [Obsolete("Please use the overload taking all parameters. Scheduled for removal in Umbraco 18.")]
    protected abstract void Handle(IEnumerable<TEntity> entities)
    Parameters
    Type Name Description
    IEnumerable<TEntity> entities

    The entities.

    View Source

    Handle(IEnumerable<TEntity>, IDictionary<string, object?>)

    Handles the specified entities.

    Declaration
    protected virtual void Handle(IEnumerable<TEntity> entities, IDictionary<string, object?> state)
    Parameters
    Type Name Description
    IEnumerable<TEntity> entities

    The entities.

    IDictionary<string, object> state

    The notification state.

    View Source

    Handle(IEnumerable<TNotification>)

    Handles the notifications.

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

    The notifications.

    View Source

    Handle(TNotification)

    Handles a notification.

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

    The notification.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX