11 lines
349 B
C#
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);
|
|
} |