C# Class BlueCollar.Service.ApplicationCoordinator

Inheritance: IDisposable
Mostra file Open project: ChadBurggraf/blue-collar Class Usage Examples

Public Methods

Method Description
ApplicationCoordinator ( Logger logger ) : System

Initializes a new instance of the ApplicationCoordinator class.

ApplicationCoordinator ( Logger logger, string exePath ) : System

Initializes a new instance of the ApplicationCoordinator class.

Dispose ( ) : void

Disposes of resources used by this instance.

GetCoordinatedApplicationPaths ( ) : IEnumerable

Gets a collection of application paths currently being coordinated by this instance.

StartAndRefresh ( IEnumerable elements ) : void

Starts or refreshes all applications, creating and pruning existing applications from the given element collection as necessary.

Stop ( ) : void

Stops all applications.

Private Methods

Method Description
ApplicationExited ( object sender, EventArgs e ) : void

Raises an application's Exited event.

CreateRefreshAndPruneApplications ( IEnumerable elements ) : void
Dispose ( bool disposing ) : void

Disposes of resources used by this instance.

SetApplicationProperties ( ApplicationProcess application, ApplicationElement element ) : bool

Sets the given application's configurable properties from the given configuration element.

StartApplication ( object context ) : void

Starts an application.

Stop ( bool disposing ) : void

Stops all applications.

Method Details

ApplicationCoordinator() public method

Initializes a new instance of the ApplicationCoordinator class.
public ApplicationCoordinator ( Logger logger ) : System
logger Logger The logger to use.
return System

ApplicationCoordinator() public method

Initializes a new instance of the ApplicationCoordinator class.
public ApplicationCoordinator ( Logger logger, string exePath ) : System
logger Logger The logger to use.
exePath string The path of the Collar.exe path to use for applications.
return System

Dispose() public method

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

GetCoordinatedApplicationPaths() public method

Gets a collection of application paths currently being coordinated by this instance.
public GetCoordinatedApplicationPaths ( ) : IEnumerable
return IEnumerable

StartAndRefresh() public method

Starts or refreshes all applications, creating and pruning existing applications from the given element collection as necessary.
public StartAndRefresh ( IEnumerable elements ) : void
elements IEnumerable The application element collection to use when building the /// application process list.
return void

Stop() public method

Stops all applications.
public Stop ( ) : void
return void