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
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)
System.Object.ToString()
Assembly: NFX.dll
Syntax
public sealed class QueryResolver : ICRUDQueryResolver, IConfigurable
Constructors
QueryResolver(ICRUDDataStoreImplementation)
Declaration
public QueryResolver(ICRUDDataStoreImplementation dataStore)
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
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
Extension Methods