Skip to content

INotificationHandler<TNotification> interface

Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll

Handles a notification of type TNotification. Multiple handlers may be registered for the same notification type.

public interface INotificationHandler<TNotification> where TNotification : INotification

TNotification

The notification type.

Handles the given notification.

ValueTask Handle(TNotification notification, CancellationToken ct = default)

notification TNotification

ct CancellationToken

ValueTask