C# Class BlueCollar.Service.ApplicationCoordinator

Inheritance: IDisposable
Afficher le fichier Open project: ChadBurggraf/blue-collar Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ApplicationCoordinator() public méthode

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.
Résultat System

Dispose() public méthode

Disposes of resources used by this instance.
public Dispose ( ) : void
Résultat void

GetCoordinatedApplicationPaths() public méthode

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

StartAndRefresh() public méthode

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.
Résultat void

Stop() public méthode

Stops all applications.
public Stop ( ) : void
Résultat void