A task response that consists of a task identifier, an output from the service (if any), and an exception (if any).

C# |
public sealed class TaskOutputHandle

All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | Exception | Retrieves the attached exception if the task was unsuccessful. |
![]() | GetTaskOutput()()()() | Retrieves the task output object that was passed back to the client from the service. |
![]() | Id | Returns the task identifier for this task. |
![]() | IsSuccessful | Indicates whether the corresponding task was successfully processed by the service instance. |
![]() | PopulateTaskOutput(Message) | Populates message with the task result that was passed back to the client from the service. |

For synchronous retrieval of task responses, Session.FetchTaskOutput can be invoked to retrieve an EnumItems object, which contains a series of TaskOutputHandles. You can enumerate through this object by using the enumeration in a foreach loop.
For asynchronous processing of task responses, the TaskOutputHandle will be passed to the SessionCallback.ResponseHandler delegate when that task has completed.
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 | |
![]() | TaskOutputHandle |