10 lines
280 B
C#
10 lines
280 B
C#
|
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);
|
|||
|
}
|