Table of Contents

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

type string

The object type.

current Current

The Current object for the dispatch.

Returns

Task<ObjectPrx[]>

A task that represents the asynchronous operation.

findAllReplicasAsync(ObjectPrx?, Current)

Finds all the replicas of a well-known object.

Task<ObjectPrx?[]> findAllReplicasAsync(ObjectPrx? proxy, Current current)

Parameters

proxy ObjectPrx

A proxy that identifies the well-known object.

current Current

The Current object for the dispatch.

Returns

Task<ObjectPrx[]>

A task that represents the asynchronous operation.

findObjectByIdAsync(Identity, Current)

Finds a well-known object by identity.

Task<ObjectPrx?> findObjectByIdAsync(Identity id, Current current)

Parameters

id Identity

The identity.

current Current

The Current object for the dispatch.

Returns

Task<ObjectPrx>

A task that represents the asynchronous operation.

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

type string

The object type.

current Current

The Current object for the dispatch.

Returns

Task<ObjectPrx>

A task that represents the asynchronous operation.

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

type string

The object type.

sample LoadSample

The sampling interval.

current Current

The Current object for the dispatch.

Returns

Task<ObjectPrx>

A task that represents the asynchronous operation.