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