Interface AsyncQuery
- Namespace
- IceGrid
- Assembly
- IceGrid.dll
Finds well-known Ice objects registered with the IceGrid registry.
[SliceTypeId("::IceGrid::Query")]
public interface AsyncQuery : Object
- Inherited Members
Remarks
The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::Query.
This Async interface maps each Slice operation to an asynchronous method that returns a Task. Your servant class implements this interface by deriving fromAsyncQueryDisp_ or from the Disp_ class for a derived interface.
Methods
findAllObjectsByTypeAsync(string, Current)
Finds all the well-known objects with the given type.
Task<ObjectPrx?[]> findAllObjectsByTypeAsync(string type, Current current)
Parameters
Returns
findAllReplicasAsync(ObjectPrx?, Current)
Finds all the replicas of a well-known object.
Task<ObjectPrx?[]> findAllReplicasAsync(ObjectPrx? proxy, Current current)
Parameters
proxyObjectPrxA proxy that identifies the well-known object.
currentCurrentThe Current object for the dispatch.
Returns
findObjectByIdAsync(Identity, Current)
Finds a well-known object by identity.
Task<ObjectPrx?> findObjectByIdAsync(Identity id, Current current)
Parameters
Returns
findObjectByTypeAsync(string, Current)
Finds a well-known object by type. If there are several objects registered for the given type, the object is randomly selected.
Task<ObjectPrx?> findObjectByTypeAsync(string type, Current current)
Parameters
Returns
findObjectByTypeOnLeastLoadedNodeAsync(string, LoadSample, Current)
Finds a well-known object by type on the least-loaded node. If the registry does not know which node hosts the object (for example, because the object was registered with a direct proxy), the registry assumes the object is hosted on a node that has a load average of 1.0.
Task<ObjectPrx?> findObjectByTypeOnLeastLoadedNodeAsync(string type, LoadSample sample, Current current)
Parameters
typestringThe object type.
sampleLoadSampleThe sampling interval.
currentCurrentThe Current object for the dispatch.