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(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 representing the asynchronous operation.

    View Source

    HandleAsync(IEnumerable<TNotification>, CancellationToken)

    Handles the notifications.

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

    The notifications.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    A representing the asynchronous operation.

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