C# Class MonkeyWrench.IProcessHelper

Show file Open project: rolfbjarne/monkeywrench Class Usage Examples

Public Methods

Method Description
Exit ( int exitcode ) : void

Default Exit implementation (calls Environment.Exit)

KillTree ( Process p ) : void

Default KillTree implementation.

Protected Methods

Method Description
FindChildren ( int pid, List result ) : void
GetChildren ( int pid ) : List
Kill ( IEnumerable pids ) : void
Kill ( int pid ) : void

Default Kill implementation.

Private Methods

Method Description
GetChildrenImplPS ( int pid ) : List

Implementation using ps

GetChildrenImplPgrep ( int pid ) : List

Implementation using pgrep

Method Details

Exit() public method

Default Exit implementation (calls Environment.Exit)
public Exit ( int exitcode ) : void
exitcode int
return void

FindChildren() protected method

protected FindChildren ( int pid, List result ) : void
pid int
result List
return void

GetChildren() protected method

protected GetChildren ( int pid ) : List
pid int
return List

Kill() protected method

protected Kill ( IEnumerable pids ) : void
pids IEnumerable
return void

Kill() protected method

Default Kill implementation.
protected Kill ( int pid ) : void
pid int
return void

KillTree() public method

Default KillTree implementation.
public KillTree ( Process p ) : void
p System.Diagnostics.Process
return void