Interface IQueryPipeline
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Defines a system can execute queries.
public interface IQueryPipeline
- Extension Methods
Methods
Perform(FullyQualifiedQueryName, QueryArguments, Paging, Sorting, IServiceProvider, CancellationToken)
Performs the given query.
Task<QueryResult> Perform(FullyQualifiedQueryName queryName, QueryArguments arguments, Paging paging, Sorting sorting, IServiceProvider serviceProvider, CancellationToken cancellationToken = default)
Parameters
queryNameFullyQualifiedQueryNameThe name of the query to perform.
argumentsQueryArgumentsThe arguments for the query.
pagingPagingThe paging to apply to the query.
sortingSortingThe sorting to apply to the query.
serviceProviderIServiceProviderThe IServiceProvider scoped to the current request, used to resolve dependencies.
cancellationTokenCancellationTokenThe CancellationToken for cancelling the query.
Returns
- Task<QueryResult>
A QueryResult representing the result of executing the command.