Files
Toolkit2/Framework/Foundation/Lifecycles/IRequestHandler.cs
T

11 lines
349 B
C#

namespace Toolkit.Framework.Foundation;
public interface IRequestHandler<in TRequest> : IRequestHandler<TRequest, Unit> where TRequest : IRequest<Unit>
{
}
public interface IRequestHandler<in TRequest, TResponse> where TRequest : IRequest<TResponse>
{
ValueTask<TResponse> Handle(TRequest request, CancellationToken cancellationToken);
}