Interface ICRUDQueryResolver
Represents a class that resolves Query into suitable handler that can execute it
Assembly: Azos.dll
Syntax
public interface ICRUDQueryResolver : IApplicationComponent, IConfigurable
Properties
HandlerLocations
Declaration
IList<string> HandlerLocations { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IList<System.String> |
|
Handlers
Declaration
IRegistry<CRUDQueryHandler> Handlers { get; }
Property Value
ScriptAssembly
Declaration
string ScriptAssembly { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
RegisterHandlerLocation(String)
Registers handler location.
The Resolver must be not started yet. This method is NOT thread safe
Declaration
void RegisterHandlerLocation(string location)
Parameters
| Type |
Name |
Description |
| System.String |
location |
|
Resolve(Query)
Retrieves a handler for supplied query. The implementation must be thread-safe
Declaration
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
bool UnregisterHandlerLocation(string location)
Parameters
| Type |
Name |
Description |
| System.String |
location |
|
Returns
| Type |
Description |
| System.Boolean |
|
Extension Methods