Table of Contents

Class AsyncUserAccountMapperDisp_

Namespace
IceGrid
Assembly
IceGrid.dll

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

public abstract class AsyncUserAccountMapperDisp_ : AsyncUserAccountMapper, Object
Inheritance
AsyncUserAccountMapperDisp_
Implements
Inherited Members

Remarks

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

Methods

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.

getUserAccountAsync(string, Current)

Gets the name of the user account for the given user. This is used by IceGrid nodes to figure out the user account to use to run servers.

public abstract Task<string> getUserAccountAsync(string user, Current current)

Parameters

user string

The value of the server descriptor's user attribute. When this attribute is not defined, and the server's activation mode is session, the default value for user is the session identifier.

current Current

The Current object for the dispatch.

Returns

Task<string>

A task that represents the asynchronous operation.

Exceptions

UserAccountNotFoundException

Thrown when no user account is found for the given user.

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::UserAccountMapper.