Provides the context for the task that is bound to the given service invocation.

C# |
public sealed class TaskContext

All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | DiscardTaskInput()()()() | Frees the middleware's local copy of the Task input. |
![]() | GetTaskInput()()()() | Retrieves the task input object that was sent from the client to the service. |
![]() | PopulateTaskInput(Message) | Populates inMsg with the task input that was passed from the client to the service. |
![]() | SessionId | Gets the identifier of the Session that owns this task. |
![]() | SetTaskOutput(Object) | Sets the task output object that is to be sent back to the client. |
![]() | SetTaskOutput(Message) | Sets the task output message that is to be sent back to the client. |
![]() | TaskId | Gets the identifier for this task. |

NOTE: If any of the methods of this class are called after the Main(...) method exits, the client or service process may behave in an undefined manner (for example, hang or terminate abnormally).

Object | |
![]() | TaskContext |