Click or drag to resize
AbstractSession Class
This class provides an abstract session for sharing interfaces between Session and ProviderSession.
Inheritance Hierarchy
SystemObject
  Bloomberglp.BlpapiAbstractSession
    Bloomberglp.BlpapiProviderSession
    Bloomberglp.BlpapiSession

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.19.2.1
Syntax
public abstract class AbstractSession : IAbstractSession, 
	IDisposable

The AbstractSession type exposes the following members.

Constructors
  NameDescription
Protected methodAbstractSession
The default constructor.
Top
Methods
  NameDescription
Public methodCancel(CorrelationID)
Cancels an outstanding request or a subscription represented by the specified correlationId.
Public methodCancel(IListCorrelationID)
Cancels outstanding requests or subscriptions represented by the specified list of correlationIds.
Public methodCancel(CorrelationID, String)
Cancels an outstanding request or a subscription represented by the specified correlationId.
Public methodCancel(IListCorrelationID, String)
Cancels outstanding requests or subscriptions represented by the specified list of correlationIds.
Public methodCreateIdentity
Returns a new Identity which is valid but has not been authorized.
Public methodCreateUserHandle Obsolete.
Protected methodDispatchEvent
Dispatch event with event handler if it has been set otherwise do nothing. Event handlers are set by a library client in case of async session. SetEventHandler(ISessionEventHandler), SetEventHandler(ISessionEventHandler, EventEventType), EventEventType
Public methodGenerateAuthorizedIdentity
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.

Public methodGenerateToken
Return a generated token to be used for authorization.
Public methodGenerateToken(CorrelationID)
Return a generated token to be used for authorization.
Public methodGenerateToken(CorrelationID, IEventQueue)
Return a generated token to be used for authorization.
Public methodGenerateToken(String, String, CorrelationID, IEventQueue)
Return a generated token to be used for authorization.
Public methodGetAuthorizedIdentity
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.

Public methodGetService
Returns a handle to a Service object representing the service identified by the specified uri.
Protected methodInit
Initialize AbstractSession. Must be called from the constructor(s) of the derived class.
Public methodNextEvent
Returns the next event available for processing on this session.
Public methodNextEvent(Int64)
Returns the next event available for processing on this session.
Public methodOpenService
Opens the service having the specified uri.
Public methodOpenServiceAsync(String)
Issues an asynchronous request to open a service.
Public methodOpenServiceAsync(String, CorrelationID)
Initiates an asynchronous request to open a service.
Public methodSendAuthorizationRequest(Request, Identity, CorrelationID)
Sends the specified authorizationRequest and update the specified identity with the results.
Public methodSendAuthorizationRequest(Request, UserHandle, CorrelationID) Obsolete.
Deprecated since 3.3.0.0. Use SendAuthorizationRequest(Request, Identity, CorrelationID)instead.
Public methodSendAuthorizationRequest(Request, Identity, CorrelationID, String)
Sends the specified authorizationRequest and update the specified identity with the results.
Public methodSendAuthorizationRequest(Request, Identity, IEventQueue, CorrelationID)
Sends the specified authorizationRequest and update the specified identity with the results.
Public methodSendAuthorizationRequest(Request, UserHandle, CorrelationID, String) Obsolete.
Public methodSendAuthorizationRequest(Request, UserHandle, IEventQueue, CorrelationID) Obsolete.
Public methodSendAuthorizationRequest(Request, Identity, IEventQueue, CorrelationID, String)
Sends the specified authorizationRequest and update the specified identity with the results.
Public methodSendAuthorizationRequest(Request, UserHandle, IEventQueue, CorrelationID, String) Obsolete.
Public methodStart
Issues a blocking call to start the session.
Public methodStartAsync
Initiates a non blocking call to start the session.
Public methodStop
Stops this session.
Public methodStop(AbstractSessionStopOption)
Stops the operation of this session.
Public methodTryNextEvent
Tries to retrieve the next event available for processing on this session
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIDisposableDispose
Dispose this Session object. It calls AbstractSession.Stop() to close the opened socket.
Top
Remarks
Sessions manage access to services either by requests and responses or subscriptions. A Session can dispatch events and replies in either a synchronous or asynchronous mode. The mode of a Session is determined when it is constructed and cannot be changed subsequently.
See Also