NewPSSessionCommand.StopProcessing Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called when the user sends a stop signal to the cmdlet. The cmdlet will not exit until it has completed creating all the runspaces (basically the runspaces its waiting on OpenAsync is made available). However, when a stop signal is sent, CloseAsyn needs to be called to close all the pending runspaces.
protected:
override void StopProcessing();
protected:
override void StopProcessing();
override void StopProcessing();
protected override void StopProcessing ();
override this.StopProcessing : unit -> unit
Protected Overrides Sub StopProcessing ()
Remarks
This is called from a separate thread so need to worry about concurrency issues