Files
Hyperbar/Hyperbar/Mediators/IHandler.cs
T

17 lines
368 B
C#

namespace Hyperbar;
public interface IHandler;
public interface IHandler<in TRequest, TResponse> :
IHandler
where TRequest :
IRequest<TResponse>
{
Task<TResponse> Handle(TRequest request,
CancellationToken cancellationToken);
}
public interface IHandler<in TRequest> :
IHandler<TRequest, Unit>
where TRequest :
IRequest<Unit>;