C# Class AcTools.Utils.Helpers.ProcessWrapper

Mostra file Open project: gro-ove/actools

Public Methods

Method Description
ProcessWrapper ( Process inner ) : System
RaiseOnExited ( ) : void
ReleaseProcessHandle ( IntPtr handle ) : void
WaitForExitSafe ( int milliseconds ) : bool
WaitForExitSafe ( ) : void
WaitForExitSafeAsync ( CancellationToken cancellation = default(CancellationToken) ) : Task

Private Methods

Method Description
GetProcessHandle ( Kernel32 access, bool throwIfExited ) : IntPtr

Method Details

ProcessWrapper() public method

public ProcessWrapper ( Process inner ) : System
inner System.Diagnostics.Process
return System

RaiseOnExited() public method

public RaiseOnExited ( ) : void
return void

ReleaseProcessHandle() public method

public ReleaseProcessHandle ( IntPtr handle ) : void
handle System.IntPtr
return void

WaitForExitSafe() public method

public WaitForExitSafe ( int milliseconds ) : bool
milliseconds int
return bool

WaitForExitSafe() public method

public WaitForExitSafe ( ) : void
return void

WaitForExitSafeAsync() public method

public WaitForExitSafeAsync ( CancellationToken cancellation = default(CancellationToken) ) : Task
cancellation System.Threading.CancellationToken
return Task