Table of Contents

Interface INotificationHandler<T>

Namespace
Arc4u.Dispatcher.Notification
Assembly
Arc4u.Dispatcher.dll

Will be used to implement a notification.

public interface INotificationHandler<T>

Type Parameters

T

The type of the object notified.

Methods

HandleAsync(T, CancellationToken)

Handles the notification.

Task HandleAsync(T entity, CancellationToken cancellationToken)

Parameters

entity T

The notified object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task

A task that completes when the notification is handled.