Table of Contents

Class QueryProviders

Namespace
Cratis.Applications.Queries
Assembly
Cratis.Applications.dll

Represents an implementation of IQueryProviders.

public class QueryProviders : IQueryProviders
Inheritance
QueryProviders
Implements
Inherited Members

Constructors

QueryProviders(IQueryContextManager, ICorrelationIdAccessor, ITypes, IServiceProvider)

Represents an implementation of IQueryProviders.

public QueryProviders(IQueryContextManager queryContextManager, ICorrelationIdAccessor correlationIdAccessor, ITypes types, IServiceProvider serviceProvider)

Parameters

queryContextManager IQueryContextManager

IQueryContextManager for managing query contexts.

correlationIdAccessor ICorrelationIdAccessor

ICorrelationIdAccessor for getting the current correlation ID.

types ITypes

ITypes for type discovery.

serviceProvider IServiceProvider

IServiceProvider for getting instances of query providers.

Methods

Execute(object)

Execute a query.

public QueryProviderResult Execute(object query)

Parameters

query object

Query to execute.

Returns

QueryProviderResult

Result.