Acts as a conduit for tasks being submitted to the service instances. Enables the client to manage its workload.

C# |
public sealed class Session

All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | Close(SessionCloseFlags) | Closes this Session (mandatory). |
![]() | Close()()() | Closes this Session (mandatory). |
![]() | FetchTaskOutput(TaskOutputFilter, Int64) | Retrieves the task outputs that match the specified filter. |
![]() | FetchTaskOutput(TaskOutputFilter) | Retrieves the task outputs that match the specified filter. |
![]() | FetchTaskOutput(UInt64, Int64) | If countMax task responses are ready before the timeout occurs, this method will return with all countMax responses as soon as they are available; otherwise, this method will block for up to timeoutInSeconds seconds and return with the responses that are available at timeout (will be between 0 and countMax responses, inclusive). |
![]() | FetchTaskOutput(UInt64) | Blocks indefinitely until countMax task responses are ready. |
![]() | Id | Returns the identier for this Session. This identifier can be used to allow another client to attach to this Session. |
![]() | SendTaskInput(Object, Boolean) | Delivers the provided task input object to the middleware. |
![]() | SendTaskInput(Message, Boolean) | Delivers the provided task input message to the middleware. |
![]() | SendTaskInput(Object) | Delivers the provided task input object to the middleware. |
![]() | SendTaskInput(Message) | Delivers the provided task input message to the middleware. |
![]() | SendTaskInput(TaskSubmissionAttributes) | Delivers the provided task input object to the middleware. |
![]() | Update(SessionUpdateAttributes) | Updates this session with the provided attributes. |
![]() | UpdatePriority(Int32) | Updates this session with the provided priority. |

Created by invoking Connection.CreateSession. You can specify the following attributes when creating your Session:
- session name - This is just a name for your session, so that it can be easily identified. Maximum 1024 characters. Default session name is "".
- session type - This argument tells Symphony which type of session to create. In the application profile, you can define different types of sessions with different attributes. For this argument, specify the name of the session type you would like to use. Default value is "".
- session flags - This argument tells Symphony how you would like to send and receive task results for the session. Default value is SessionFlags.ReceiveSync, which means that you will send and receive your task results synchronously.
- common data - This argument allows you to provide common data to the session. Common data is any data that is common to all of the tasks in your session. You can send common data rather than sending duplicate data to each task, and thus save on network overhead. Default value is null - no common data.

Object | |
![]() | Session |