Class QueryResolver
Infrastructure class - not for app developers.
Resolves Query objects into query handlers. Query names are case-insensitive.
This class is thread-safe
Inheritance
System.Object
QueryResolver
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public sealed class QueryResolver : ApplicationComponent<ICRUDDataStoreImplementation>, IDisposable, ICRUDQueryResolver, IApplicationComponent, IConfigurable
Constructors
QueryResolver(ICRUDDataStoreImplementation)
Declaration
public QueryResolver(ICRUDDataStoreImplementation director)
Parameters
Fields
CONFIG_HANDLER_LOCATION_SECTION
Declaration
public const string CONFIG_HANDLER_LOCATION_SECTION = "handler-location"
Field Value
Type |
Description |
System.String |
|
CONFIG_NS_ATTR
Declaration
public const string CONFIG_NS_ATTR = "ns"
Field Value
Type |
Description |
System.String |
|
CONFIG_QUERY_RESOLVER_SECTION
Declaration
public const string CONFIG_QUERY_RESOLVER_SECTION = "query-resolver"
Field Value
Type |
Description |
System.String |
|
CONFIG_SCRIPT_ASM_ATTR
Declaration
public const string CONFIG_SCRIPT_ASM_ATTR = "script-assembly"
Field Value
Type |
Description |
System.String |
|
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
HandlerLocations
Declaration
public IList<string> HandlerLocations { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<System.String> |
|
Handlers
Declaration
public IRegistry<CRUDQueryHandler> Handlers { get; }
Property Value
ScriptAssembly
Gets sets name of assembly that query scripts resolve from
Declaration
public string ScriptAssembly { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public void Configure(IConfigSectionNode node)
Parameters
RegisterHandlerLocation(String)
Registers handler location. The Resolver must be not started yet. This method is NOT thread safe
Declaration
public void RegisterHandlerLocation(string location)
Parameters
Type |
Name |
Description |
System.String |
location |
|
Resolve(Query)
Declaration
public CRUDQueryHandler Resolve(Query query)
Parameters
Type |
Name |
Description |
Query |
query |
|
Returns
UnregisterHandlerLocation(String)
Unregisters handler location returning true if it was found and removed. The Resolve must be not started yet. This method is NOT thread safe
Declaration
public bool UnregisterHandlerLocation(string location)
Parameters
Type |
Name |
Description |
System.String |
location |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IDisposable
Extension Methods