C# 클래스 BlueCollar.Service.ApplicationProcess

Represents an application and its associated process.
상속: IDisposable
파일 보기 프로젝트 열기: ChadBurggraf/blue-collar 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
KillProcess void
ProcessExited void

공개 메소드들

메소드 설명
ApplicationProcess ( Logger logger, string path ) : System

Initializes a new instance of the ApplicationProcess class.

ApplicationProcess ( Logger logger, string path, string exePath ) : System

Initializes a new instance of the ApplicationProcess class.

Dispose ( ) : void

Disposes of resources used by this instance.

Start ( ) : bool

Starts this instance's application's process, if it is not started already.

Stop ( bool force ) : void

Stops this instance's process.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes of resources used by this instance.

KillProcess ( ) : void

Kills this instance's process.

ProcessExited ( object sender, EventArgs e ) : void

Raises the process' Exited event.

메소드 상세

ApplicationProcess() 공개 메소드

Initializes a new instance of the ApplicationProcess class.
public ApplicationProcess ( Logger logger, string path ) : System
logger Logger The logger to use.
path string The path of the application.
리턴 System

ApplicationProcess() 공개 메소드

Initializes a new instance of the ApplicationProcess class.
public ApplicationProcess ( Logger logger, string path, string exePath ) : System
logger Logger The logger to use.
path string The path of the application.
exePath string The path of the Collar.exe executable to use.
리턴 System

Dispose() 공개 메소드

Disposes of resources used by this instance.
public Dispose ( ) : void
리턴 void

Start() 공개 메소드

Starts this instance's application's process, if it is not started already.
public Start ( ) : bool
리턴 bool

Stop() 공개 메소드

Stops this instance's process.
public Stop ( bool force ) : void
force bool A value indicating whether to force the process to exit immediately.
리턴 void