Interface INotificationHandler<T1, T2, T3, T4, T5>
- Namespace
- Arc4u.Dispatcher.Notification
- Assembly
- Arc4u.Dispatcher.dll
Implemented to react to a notification carrying 5 values. Register the implementations in the dependency injection container; they are resolved through INotificationHandlers<T1, T2, T3, T4, T5>.
public interface INotificationHandler<T1, T2, T3, T4, T5>
Type Parameters
T1The type of the notification value number 1.
T2The type of the notification value number 2.
T3The type of the notification value number 3.
T4The type of the notification value number 4.
T5The type of the notification value number 5.
Methods
HandleAsync(T1, T2, T3, T4, T5, CancellationToken)
Handles the notification.
Task HandleAsync(T1 param1, T2 param2, T3 param3, T4 param4, T5 param5, CancellationToken cancellationToken)
Parameters
param1T1The notification value number 1.
param2T2The notification value number 2.
param3T3The notification value number 3.
param4T4The notification value number 4.
param5T5The notification value number 5.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task that completes when the notification is handled.