Use this method if you would like to release a session back to a user while completing your logic (which runs on its own independent thread).
void EndMacro(MacroRunResult result, bool sendAndForget) |
result
Required. The result that should be returned to the client.
sendAndForget
Required. When true, the internal calling mechanism used in server macros will not wait for the client javascript to acknowledge receipt of this request.
This method is not normally called by a ServerMacro child class; the parent ServerMacro object normally calls this method after the run method has completed, unless it has already been called inside the run method.
If this method is called, the run method should return MacroRunResult.none to avoid possible client errors from sending it more than once.