Search Results for

    Show / Hide Table of Contents
    View Source

    Interface INotificationAsyncHandler<TNotification>

    Defines a handler for a async notification.

    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public interface INotificationAsyncHandler<in TNotification> : INotificationHandler where TNotification : INotification
    Type Parameters
    Name Description
    TNotification

    The type of notification being handled.

    Methods

    View Source

    HandleAsync(IEnumerable<TNotification>, CancellationToken)

    Handles the notifications.

    Declaration
    Task HandleAsync(IEnumerable<in TNotification> notifications, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IEnumerable<TNotification> notifications

    The notifications.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    View Source

    HandleAsync(TNotification, CancellationToken)

    Handles a notification.

    Declaration
    Task HandleAsync(TNotification notification, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    TNotification notification

    The notification.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

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