Skip to content

INotificationPipelineBehavior<TNotification> interface

Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll

Cross-cutting behavior that wraps the dispatch of a notification.

public interface INotificationPipelineBehavior<TNotification> where TNotification : INotification

TNotification

The notification type.

Handle(TNotification, NotificationHandlerDelegate<TNotification>, CancellationToken)

Section titled “ Handle(TNotification, NotificationHandlerDelegate<TNotification>, CancellationToken)”

Executes this behavior step, calling next to continue the pipeline.

ValueTask Handle(TNotification notification, NotificationHandlerDelegate<TNotification> next, CancellationToken ct = default)

notification TNotification

next NotificationHandlerDelegate<TNotification>

ct CancellationToken

ValueTask