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
userIdstringThe user ID.
passwordstringThe password for the given user.
currentCurrentThe 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
currentCurrentThe 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
userIdstringThe user ID.
passwordstringThe password for the given user.
currentCurrentThe 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
currentCurrentThe 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
requestIncomingRequestThe 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
currentCurrentThe Current object for the dispatch.
Returns
ice_id(Current)
Returns the type ID of the most-derived Slice interface supported by this object.
public string ice_id(Current current)
Parameters
currentCurrentThe 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.