Files
Toolkit2/Toolkit.Foundation/IHandler.cs
T
2024-04-13 11:29:32 +01:00

17 lines
375 B
C#

namespace Toolkit.Foundation;
public interface IHandler;
public interface IHandler<in TRequest, TResponse> :
IHandler
where TRequest :
IRequest<TResponse>
{
Task<TResponse> Handle(TRequest args,
CancellationToken cancellationToken);
}
public interface IHandler<in TRequest> :
IHandler<TRequest, Unit>
where TRequest :
IRequest<Unit>;