dotnet-cqrs/OpenHarbor.CQRS.Abstractions/IQueryHandler.cs
Mathias Beaulieu-Duncan 1c81288895 update namespaces
refactor the name of the organisation
2023-11-04 15:24:56 -04:00

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);
}