This commit is contained in:
TheXamlGuy
2024-04-26 22:27:31 +01:00
parent d799eab511
commit 9f90ef693d
39 changed files with 236 additions and 211 deletions
+4 -6
View File
@@ -1,17 +1,15 @@
namespace Toolkit.Foundation;
public interface IPipelineBehavior<TMessage, TResponse>
where TMessage : IMessage
public interface IPipelineBehaviour<TMessage, TResponse>
{
Task<TResponse> Handle(TMessage message,
HandlerDelegate<TMessage, TResponse> next,
CancellationToken cancellationToken = default);
}
public interface IPipelineBehavior<TNotification>
where TNotification : INotification
public interface IPipelineBehaviour<TMessage>
{
Task Handle(TNotification notification,
NotificationHandlerDelegate<TNotification> next,
Task Handle(TMessage message,
NotificationHandlerDelegate<TMessage> next,
CancellationToken cancellationToken = default);
}