dotnet-cqrs/PoweredSoft.CQRS.Abstractions/IQueryHandler.cs
2023-10-02 11:25:45 -04:00

12 lines
304 B
C#

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