Table of Contents

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

correlationIdAccessor ICorrelationIdAccessor

Accessor for the current correlation ID.

queryContextManager IQueryContextManager

Manages the current query context.

queryFilters IQueryFilters

The query filters.

queryPerformerProviders IQueryPerformerProviders

The query performer providers.

queryRenderers IQueryRenderers

The query renderers.

serviceProvider IServiceProvider

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

queryName FullyQualifiedQueryName

The name of the query to perform.

arguments QueryArguments

The arguments for the query.

paging Paging

The paging to apply to the query.

sorting Sorting

The sorting to apply to the query.

Returns

Task<QueryResult>

A QueryResult representing the result of executing the command.