
C# |
public void SetTaskOutput( Message outMsg )

- outMsg (Message)
- The output message to be returned to the client

To retrieve this task response on the client, you must use [Session.FetchTaskOutput] for a synchronous Session, or register a handler with the OnResponse event 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 Symphony Serialization. That is, the service will send your task output to the client as a Platform.Symphony.Soam.Message. If you set your task output using this overload, you must retrieve your task output on the client with the TaskOutputHandle.PopulateTaskOutput(Platform.Symphony.Soam.Message) method.
By using Symphony Serialization, this overload provides best performance and memory usage for sending task output.
For more details, please refer to the Application Development Guide.

Exception | Condition |
---|---|
[SoamException] | If output message could not be set. |

[SessionCallback]