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
IQueryContextManagerIQueryContextManager for managing query contexts.
correlationIdAccessor
ICorrelationIdAccessorICorrelationIdAccessor for getting the current correlation ID.
types
ITypesITypes for type discovery.
serviceProvider
IServiceProviderIServiceProvider for getting instances of query providers.
Methods
Execute(object)
Execute a query.
public QueryProviderResult Execute(object query)
Parameters
query
objectQuery to execute.
Returns
- QueryProviderResult
Result.