Some refactoring

This commit is contained in:
TheXamlGuy
2024-06-09 22:41:58 +01:00
parent 8d20c0a8c0
commit 5a98b67dcf
34 changed files with 177 additions and 106 deletions
+4 -2
View File
@@ -2,7 +2,8 @@
public interface IMediator
{
Task<object?> Handle(object message,
Task<object?> Handle(Type responseType,
object message,
object? key = null,
CancellationToken cancellationToken = default);
@@ -11,7 +12,8 @@ public interface IMediator
CancellationToken cancellationToken = default)
where TMessage : notnull;
IAsyncEnumerable<object?> HandleManyAsync(object message,
IAsyncEnumerable<object?> HandleManyAsync(Type responseType,
object message,
object? key = null,
CancellationToken cancellationToken = default);