Table of Contents

Interface INotificationHandler<TNotification>

Namespace
Caesar
Assembly
Caesar.Abstractions.dll

Handles a notification. Multiple handlers may exist for the same notification type.

public interface INotificationHandler<in TNotification> where TNotification : INotification

Type Parameters

TNotification

The notification type.

Methods

Handle(TNotification, CancellationToken)

Handles the notification.

Task Handle(TNotification notification, CancellationToken cancellationToken)

Parameters

notification TNotification

The notification instance.

cancellationToken CancellationToken

Cancellation token.

Returns

Task