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

12 lines
301 B
C#
Raw Normal View History

2021-02-01 23:31:07 -05:00
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);
}
}