IQueryHandler<TQuery, TResult> interface
Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll
Handles a query that reads state and returns a value of type TResult.
public interface IQueryHandler<TQuery, TResult> where TQuery : IQuery<TResult>Type Parameters
Section titled “Type Parameters”TQuery
The query type.
TResult
The success value type.
Methods
Section titled “Methods”Handle(TQuery, CancellationToken)
Section titled “ Handle(TQuery, CancellationToken)”Handles the given query and returns a result.
ValueTask<Result<TResult>> Handle(TQuery query, CancellationToken ct = default)Parameters
Section titled “Parameters”query TQuery