Add foundation

This commit is contained in:
TheXamlGuy
2024-04-13 11:29:32 +01:00
parent 6f31aa8513
commit 053d8a851e
264 changed files with 3428 additions and 4683 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace Toolkit.Foundation;
public interface IPipelineBehavior<TMessage, TResponse>
where TMessage : IMessage
{
Task<TResponse> Handle(TMessage message,
HandlerDelegate<TMessage, TResponse> next,
CancellationToken cancellationToken = default);
}
public interface IPipelineBehavior<TNotification>
where TNotification : INotification
{
Task Handle(TNotification notification,
NotificationHandlerDelegate<TNotification> next,
CancellationToken cancellationToken = default);
}