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 SourceHandleAsync(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 |
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 |