
C# |
public void SetTaskOutput( Object output )

- output (Object)
- The output object to be returned to the client

To retrieve this task response on the client, you must use Session.FetchTaskOutput for a synchronous Session, or implement a SessionCallback for an asynchronous Session.
This method may be called regardless of the state of the invocation operation. This means that in the case of a task failure, the client will still be able to retrieve this output.
IMPORTANT NOTE: This SetTaskOutput overload uses Native Serialization. That is, the service will send your task output to the client as a [Serializable] object. If you send your task output using this overload, you must retrieve your task output on the client with the TaskOutputHandle.GetTaskOutput() method.
If you are concerned with performance or memory usage, do not use this method to send your task output. Instead, use another SetTaskOutput overload to send your task output as a Platform.Symphony.Soam.Message using Symphony Serialization.
For more details, please refer to the Application Development Guide.

[SessionCallback]