Platform Symphony .NET API Reference - Version 5.0
OpenSession Method (sessionId, sessionFlags)
NamespacesPlatform.Symphony.SoamConnectionOpenSession(String, SessionFlags)
Opens an existing session with the provided attributes, or default attributes if not provided.
Declaration Syntax
C#
public Session OpenSession(
	string sessionId,
	SessionFlags sessionFlags
)
Parameters
sessionId (String)
The session identifier.
sessionFlags (SessionFlags)

This argument tells Symphony how you would like to receive task results for the session.

See the SessionFlags enum for explanation of the various flags and their usage.

Return Value
The Session
Remarks

Deprecated.

The session will be associated with this Connection

The following default attributes are applied:
  • session callback - This argument allows you to provide a SessionCallback object, which allows you to register event handlers to process your session's task results asynchronously. This argument should only be provided when you have set the appropriate session flag argument to indicate that you will be receiving task results asynchronously. Default value is null - no session callback.

IMPORANT NOTE: Since a session can only be associated with one connection at a time, if the session being opened is already associated with a different connection, the open request will succeed and the session will now be associated with the new connection. The client which had the session opened prior to this new open request will be disconnected from the session and an exception will be returned to that client indicating the transfer of the association.

Assembly: Platform.Symphony.Soam.Net (Module: Platform.Symphony.Soam.Net) Version: 5.0.0.0