3.2.5.3.9 Rules for the wxf:Signal Message

A client uses the wxf:Signal message to stop an executing pipeline on the server, as described in section 3.1.5.3.9.

The server MUST process this message only if the message is targeted to a pipeline instance and the value of the <Code> element MUST be "powershell/signal/crtl_c" as described in section 3.1.5.3.9. If these constraints are not met, the server MUST send a wxf:Fault message to the client.

If validation is successful, then the server tries to get the pipeline instance, using the ShellID and the CommandID specified in the message, from the pipeline table (section 3.2.1.1.2). If a corresponding pipeline instance is not found, the server MUST send a wxf:Fault message.

If a corresponding pipeline instance is found, the server stops the pipeline from further execution (section 3.2.1.3.2), sends a PIPELINE_STATE message (section 3.2.5.4.21) with a state of Stopped, and sends a wxf:SignalResponse message (section 3.2.5.3.10).