C# Class CefSharp.Internals.ParentProcessMonitor

Monitor the parent process and exit if the parent process closes before the subprocess. This class is used by the CefSharp.BrowserSubprocess to self terminate if the parent dies without notifying it to exit. See https://github.com/cefsharp/CefSharp/issues/2359 for more information.
Show file Open project: Secbyte/CefSharp.Net40

Public Methods

Method Description
StartMonitorTask ( int parentProcessId ) : void

Starts a long running task (spawns new thread) used to monitor the parent process and calls Process.Kill if the parent exits unexpectedly (usually result of a crash).

Private Methods

Method Description
AwaitParentProcessExit ( int parentProcessId ) : void

Method Details

StartMonitorTask() public static method

Starts a long running task (spawns new thread) used to monitor the parent process and calls Process.Kill if the parent exits unexpectedly (usually result of a crash).
public static StartMonitorTask ( int parentProcessId ) : void
parentProcessId int process Id of the parent application
return void