Click or drag to resize

ChildProcessManagerAddProcess Method

Associates the specified process as a child of this ChildProcessManager instance.

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
public void AddProcess(
	Process process
)
View Source

Parameters

process  Process
The Process to associate.
Remarks

The process will be managed as an associated process of this ChildProcessManager instance. When this ChildProcessManager instance is disposed or garbage collected, the children processes will be terminated.

Creating an instance of this class with lifetime scope of the executing application will cause any child processes to be terminated when the parent process shuts down, on Windows environments this will happen even when the parent process termination is abnormal.

See Also