This commit is contained in:
TheXamlGuy
2024-05-24 08:21:50 +01:00
parent 40a150fe80
commit c0c1a82846
103 changed files with 168 additions and 655 deletions
+4 -5
View File
@@ -1,13 +1,12 @@
namespace Toolkit.Foundation
namespace Toolkit.Foundation
{
public interface IMediator
{
Task<object?> Handle(object message,
Task<object?> Handle(object message,
CancellationToken cancellationToken = default);
Task<TResponse?> Handle<TMessage, TResponse>(TMessage message,
CancellationToken cancellationToken = default)
Task<TResponse?> Handle<TMessage, TResponse>(TMessage message,
CancellationToken cancellationToken = default)
where TMessage : notnull;
}
}