namespace Toolkit.Foundation; public interface IPipelineBehavior where TMessage : IMessage { Task Handle(TMessage message, HandlerDelegate next, CancellationToken cancellationToken = default); } public interface IPipelineBehavior where TNotification : INotification { Task Handle(TNotification notification, NotificationHandlerDelegate next, CancellationToken cancellationToken = default); }