| AbstractSession Methods |
The AbstractSession type exposes the following members.
| Name | Description | |
|---|---|---|
| Cancel(CorrelationID) | Cancels an outstanding request or a subscription represented by the
specified correlationId.
| |
| Cancel(IListCorrelationID) | Cancels outstanding requests or subscriptions represented by the
specified list of correlationIds.
| |
| Cancel(CorrelationID, String) | Cancels an outstanding request or a subscription represented by the
specified correlationId.
| |
| Cancel(IListCorrelationID, String) | Cancels outstanding requests or subscriptions represented by the
specified list of correlationIds.
| |
| CreateIdentity | Returns a new Identity which is valid but has not been authorized.
| |
| CreateUserHandle | Obsolete. Deprecated since 3.3.0.0. Use CreateIdentity instead.
| |
| Dispose |
Dispose this Session object. It calls AbstractSession.Stop() to
close the opened socket.
| |
| GenerateAuthorizedIdentity |
Generates an authorized Identity with the specified
authOptions and cid.
One or more AUTHORIZATION_STATUS events, zero or more TOKEN_STATUS events and zero or more SERVICE_STATUS events are generated. If this is an asynchronous AbstractSession then an Event may be processed by the registered EventHandler before GenerateAuthorizedIdentity(AuthOptions, CorrelationID) has returned. The behavior is undefined when authOptions is null. | |
| GenerateToken | Return a generated token to be used for authorization.
| |
| GenerateToken(CorrelationID) | Return a generated token to be used for authorization.
| |
| GenerateToken(CorrelationID, IEventQueue) | Return a generated token to be used for authorization.
| |
| GenerateToken(String, String, CorrelationID, IEventQueue) |
Return a generated token to be used for authorization.
| |
| GetAuthorizedIdentity |
Gets the authorized Identity associated with the
specified cid.
If cid is omitted and the session identity is authorized, the function will return the session identity. | |
| GetService |
Returns a handle to a
Service
object representing the service
identified by the specified uri.
| |
| NextEvent |
This is the same as NextEvent(Int64) with
0 milliseconds.
| |
| NextEvent(Int64) |
Returns the next event available for processing on this session.
If no event is available immediately wait for timeoutMillis milliseconds for an event to arrive. If no event is received before the timeout expires return a TIMEOUT event. If the timeout specified is 0 then wait for an infinite amount of time for an event to be received. Note that this function cannot be called on a session that is operating in "asynchronous" mode. That is a session that was constructed with an EventHandler. An EventHandler must not have been provided at construction. | |
| OpenService |
Opens the service having the specified
uri.
| |
| OpenServiceAsync(String) |
Issues an asynchronous request to open a service.
| |
| OpenServiceAsync(String, CorrelationID) |
Initiates an asynchronous request to open a service.
| |
| SendAuthorizationRequest(Request, Identity, CorrelationID) | Sends the specified authorizationRequest and update the specified
identity with the results.
| |
| SendAuthorizationRequest(Request, UserHandle, CorrelationID) | Obsolete. Deprecated since 3.3.0.0. Use
SendAuthorizationRequest(Request, Identity, CorrelationID)instead.
| |
| SendAuthorizationRequest(Request, Identity, CorrelationID, String) | Sends the specified authorizationRequest and update the specified
identity with the results.
| |
| SendAuthorizationRequest(Request, Identity, IEventQueue, CorrelationID) | Sends the specified authorizationRequest and update the specified
identity with the results.
| |
| SendAuthorizationRequest(Request, UserHandle, CorrelationID, String) | Obsolete. Deprecated since 3.3.0.0. Use
SendAuthorizationRequest(Request, Identity, CorrelationID, String) instead.
| |
| SendAuthorizationRequest(Request, UserHandle, IEventQueue, CorrelationID) | Obsolete. Deprecated since 3.3.0.0. Use
SendAuthorizationRequest(Request, Identity, IEventQueue, CorrelationID) instead.
| |
| SendAuthorizationRequest(Request, Identity, IEventQueue, CorrelationID, String) | Sends the specified authorizationRequest and update the specified
identity with the results.
| |
| SendAuthorizationRequest(Request, UserHandle, IEventQueue, CorrelationID, String) | Obsolete. Deprecated since 3.3.0.0. Use
SendAuthorizationRequest(Request, UserHandle, IEventQueue, CorrelationID, String) instead.
| |
| Start |
Issues a blocking call to start the session.
| |
| StartAsync |
Initiates a non blocking call to start the session.
| |
| Stop | Stops this session.
| |
| Stop(AbstractSessionStopOption) | Stops the operation of this session.
| |
| TryNextEvent |
Retrieves the next event available for processing on this session.
This method never blocks. An EventHandler must not have been provided at construction. |