Table of Contents

Class AsyncRegistryDisp_

Namespace
IceGrid
Assembly
IceGrid.dll

Implements dispatchAsync(IncomingRequest) for the operations of Slice interface Registry.

public abstract class AsyncRegistryDisp_ : AsyncRegistry, Object
Inheritance
AsyncRegistryDisp_
Implements
Inherited Members

Remarks

The Slice compiler generated this skeleton class from Slice interface ::IceGrid::Registry. This Async skeleton class provides only asynchronous methods. Your servant class derives from this abstract class to implement Slice interface Registry.

Methods

createAdminSessionAsync(string, string, Current)

Creates an administrative session.

public abstract Task<AdminSessionPrx?> createAdminSessionAsync(string userId, string password, Current current)

Parameters

userId string

The user ID.

password string

The password for the given user.

current Current

The Current object for the dispatch.

Returns

Task<AdminSessionPrx>

A task that represents the asynchronous operation.

Exceptions

PermissionDeniedException

Thrown when authentication or authorization fails.

createAdminSessionFromSecureConnectionAsync(Current)

Creates an administrative session from a secure connection.

public abstract Task<AdminSessionPrx?> createAdminSessionFromSecureConnectionAsync(Current current)

Parameters

current Current

The Current object for the dispatch.

Returns

Task<AdminSessionPrx>

A task that represents the asynchronous operation.

Exceptions

PermissionDeniedException

Thrown when authentication or authorization fails.

createSessionAsync(string, string, Current)

Creates a client session.

public abstract Task<SessionPrx?> createSessionAsync(string userId, string password, Current current)

Parameters

userId string

The user ID.

password string

The password for the given user.

current Current

The Current object for the dispatch.

Returns

Task<SessionPrx>

A task that represents the asynchronous operation.

Exceptions

PermissionDeniedException

Thrown when authentication or authorization fails.

createSessionFromSecureConnectionAsync(Current)

Creates a client session from a secure connection.

public abstract Task<SessionPrx?> createSessionFromSecureConnectionAsync(Current current)

Parameters

current Current

The Current object for the dispatch.

Returns

Task<SessionPrx>

A task that represents the asynchronous operation.

Exceptions

PermissionDeniedException

Thrown when authentication or authorization fails.

dispatchAsync(IncomingRequest)

Dispatches an incoming request to one of the methods of this generated class, based on the operation name carried by the request.

public ValueTask<OutgoingResponse> dispatchAsync(IncomingRequest request)

Parameters

request IncomingRequest

The incoming request.

Returns

ValueTask<OutgoingResponse>

A value task that holds the outgoing response.

Remarks

Ice marshals any exception thrown by this method into the response.

getSessionTimeoutAsync(Current)

Gets the session timeout. An Ice 3.7 or earlier client can use this value to determine how often it needs to send heartbeats (using ACM) or call keepAliveAsync(Dictionary<string, string>?, IProgress<bool>?, CancellationToken) (resp. keepAliveAsync(Dictionary<string, string>?, IProgress<bool>?, CancellationToken)) to keep a session alive in the IceGrid registry.

public abstract Task<int> getSessionTimeoutAsync(Current current)

Parameters

current Current

The Current object for the dispatch.

Returns

Task<int>

A task that represents the asynchronous operation.

ice_id(Current)

Returns the type ID of the most-derived Slice interface supported by this object.

public string ice_id(Current current)

Parameters

current Current

The Current object of the incoming request.

Returns

string

The Slice type ID of the most-derived interface.

ice_staticId()

Gets the type ID of the associated Slice interface.

public static string ice_staticId()

Returns

string

The string ::IceGrid::Registry.