Replace Mediator with Messenger

This commit is contained in:
Dan Clark
2024-11-16 13:52:03 +00:00
parent 469a52efaa
commit f16dbaf375
73 changed files with 615 additions and 1345 deletions
+7 -5
View File
@@ -2,12 +2,14 @@
public interface IHandler;
public interface IHandler<in TRequest, TResponse> :
public interface IHandler<TMessage> :
IHandler
{
Task<TResponse> Handle(TRequest args,
CancellationToken cancellationToken);
void Handle(TMessage args);
}
public interface IHandler<in TRequest> :
IHandler<TRequest, Unit>;
public interface IHandler<TMessage, TResponse> :
IHandler
{
TResponse Handle(TMessage args);
}