dotnet-cqrs/OpenHarbor.CQRS.Abstractions/IQueryHandler.cs

10 lines
280 B
C#
Raw Normal View History

using System.Threading;
using System.Threading.Tasks;
namespace OpenHarbor.CQRS.Abstractions;
public interface IQueryHandler<in TQuery, TQueryResult>
where TQuery : class
{
Task<TQueryResult> HandleAsync(TQuery query, CancellationToken cancellationToken = default);
}