Replace Mediator with Messenger
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public interface IAsyncHandler<TMessage, TResponse> :
|
||||
IHandler
|
||||
{
|
||||
Task<TResponse> Handle(TMessage args, CancellationToken cancellationToken = default);
|
||||
}
|
||||
|
||||
public interface IAsyncHandler<TMessage> :
|
||||
IHandler
|
||||
{
|
||||
Task Handle(TMessage args, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user