C# 클래스 GitForce.Exec

Contains functions to execute external console applications. Standard streams (stdout/stderr) are captured and returned. Command shell is not invoked as that would prevent capturing the streams. Internally, the invocation is asynchronous.
파일 보기 프로젝트 열기: gdevic/GitForce 1 사용 예제들

공개 메소드들

메소드 설명
AsyncRun ( PStdoutDelegate pstdout, PStderrDelegate pstderr, PCompleteDelegate pcomplete ) : void
Exec ( string cmd, string args ) : System
Run ( string cmd, string args ) : ExecResult

Main command execution function. Upon completion, prints all errors to the log window.

Terminate ( ) : void

Terminate this job

비공개 메소드들

메소드 설명
PErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void

Callback that handles process printing to stderr Collect all strings into one stderr variable and call a custom handler.

POutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Callback that handles process printing to stdout. Collect all strings into one stdout variable and call a custom handler.

ThreadedRun ( object wait ) : void

Executes a job process and blocks until it completes.

메소드 상세

AsyncRun() 공개 메소드

public AsyncRun ( PStdoutDelegate pstdout, PStderrDelegate pstderr, PCompleteDelegate pcomplete ) : void
pstdout PStdoutDelegate
pstderr PStderrDelegate
pcomplete PCompleteDelegate
리턴 void

Exec() 공개 메소드

public Exec ( string cmd, string args ) : System
cmd string
args string
리턴 System

Run() 공개 정적인 메소드

Main command execution function. Upon completion, prints all errors to the log window.
public static Run ( string cmd, string args ) : ExecResult
cmd string
args string
리턴 ExecResult

Terminate() 공개 메소드

Terminate this job
public Terminate ( ) : void
리턴 void