C# Класс BlueCollar.Service.ApplicationProcess

Represents an application and its associated process.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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