C# 클래스 ProcessUtilities.UtilityBackgroundProcess

파일 보기 프로젝트 열기: ryanski44/VM-Automation-Framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
proc System.Diagnostics.Process

Private Properties

프로퍼티 타입 설명
FlushOutputs bool
onDebugMessageSent void
proc_ErrorDataReceived void
proc_OutputDataReceived void

공개 메소드들

메소드 설명
GetChildProcesses ( int processID ) : System.Diagnostics.Process[]
GetParentProcessID ( Process p ) : int?
Run ( string arguments ) : bool
Run ( string arguments, string workingDir ) : bool
Stop ( ) : void
UtilityBackgroundProcess ( string program ) : System
WaitForExit ( ) : bool
WaitForExit ( System.TimeSpan timeout ) : bool
WaitForStandardOutput ( string toWatchFor ) : bool
WaitForStandardOutput ( string toWatchFor, System.TimeSpan maxWait ) : bool
WaitForSubProcessToExit ( ) : void

비공개 메소드들

메소드 설명
FlushOutputs ( System.TimeSpan maxWaitTime ) : bool
onDebugMessageSent ( string message ) : void
proc_ErrorDataReceived ( object sender, DataReceivedEventArgs outLine ) : void
proc_OutputDataReceived ( object sendingProcess, DataReceivedEventArgs outLine ) : void

메소드 상세

GetChildProcesses() 공개 정적인 메소드

public static GetChildProcesses ( int processID ) : System.Diagnostics.Process[]
processID int
리턴 System.Diagnostics.Process[]

GetParentProcessID() 공개 정적인 메소드

public static GetParentProcessID ( Process p ) : int?
p System.Diagnostics.Process
리턴 int?

Run() 공개 메소드

public Run ( string arguments ) : bool
arguments string
리턴 bool

Run() 공개 메소드

public Run ( string arguments, string workingDir ) : bool
arguments string
workingDir string
리턴 bool

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

UtilityBackgroundProcess() 공개 메소드

public UtilityBackgroundProcess ( string program ) : System
program string
리턴 System

WaitForExit() 공개 메소드

public WaitForExit ( ) : bool
리턴 bool

WaitForExit() 공개 메소드

public WaitForExit ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan
리턴 bool

WaitForStandardOutput() 공개 메소드

public WaitForStandardOutput ( string toWatchFor ) : bool
toWatchFor string
리턴 bool

WaitForStandardOutput() 공개 메소드

public WaitForStandardOutput ( string toWatchFor, System.TimeSpan maxWait ) : bool
toWatchFor string
maxWait System.TimeSpan
리턴 bool

WaitForSubProcessToExit() 공개 메소드

public WaitForSubProcessToExit ( ) : void
리턴 void

프로퍼티 상세

proc 공개적으로 프로퍼티

public Process,System.Diagnostics proc
리턴 System.Diagnostics.Process