dotnet-cqrs/PoweredSoft.CQRS.Abstractions/IQueryHandler.cs
2021-02-01 23:31:07 -05:00

12 lines
301 B
C#

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