Class QueryPipeline
- Namespace
- Cratis.Applications.Queries
- Assembly
- Cratis.Applications.dll
Represents a query pipeline.
public class QueryPipeline : IQueryPipeline- Inheritance
- 
      
      QueryPipeline
- Implements
- Inherited Members
- Extension Methods
Constructors
QueryPipeline(ICorrelationIdAccessor, IQueryContextManager, IQueryFilters, IQueryPerformerProviders, IQueryRenderers, IServiceProvider)
Represents a query pipeline.
public QueryPipeline(ICorrelationIdAccessor correlationIdAccessor, IQueryContextManager queryContextManager, IQueryFilters queryFilters, IQueryPerformerProviders queryPerformerProviders, IQueryRenderers queryRenderers, IServiceProvider serviceProvider)Parameters
- correlationIdAccessorICorrelationIdAccessor
- Accessor for the current correlation ID. 
- queryContextManagerIQueryContextManager
- Manages the current query context. 
- queryFiltersIQueryFilters
- The query filters. 
- queryPerformerProvidersIQueryPerformerProviders
- The query performer providers. 
- queryRenderersIQueryRenderers
- The query renderers. 
- serviceProviderIServiceProvider
- Service provider for resolving dependencies. 
Methods
Perform(FullyQualifiedQueryName, QueryArguments, Paging, Sorting)
Performs the given query.
public Task<QueryResult> Perform(FullyQualifiedQueryName queryName, QueryArguments arguments, Paging paging, Sorting sorting)Parameters
- queryNameFullyQualifiedQueryName
- The name of the query to perform. 
- argumentsQueryArguments
- The arguments for the query. 
- pagingPaging
- The paging to apply to the query. 
- sortingSorting
- The sorting to apply to the query. 
Returns
- Task<QueryResult>
- A QueryResult representing the result of executing the command.