C# Class BlueCollar.Service.ApplicationProcess

Represents an application and its associated process.
Inheritance: IDisposable
Datei anzeigen Open project: ChadBurggraf/blue-collar Class Usage Examples

Private Properties

Property Type Description
Dispose void
KillProcess void
ProcessExited void

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

ApplicationProcess() public method

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.
return System

ApplicationProcess() public method

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.
return System

Dispose() public method

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

Start() public method

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

Stop() public method

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