C# Class Drey.ControlPanelServiceControl

Inheritance: System.MarshalByRefObject, ServiceControl, IDisposable
Mostra file Open project: dealproc/Drey

Public Methods

Method Description
ControlPanelServiceControl ( ExecutionMode mode = ExecutionMode.Production, Action configureLogging = null, string logVerbosity = "Info" ) : Drey.Logging

Initializes a new instance of the ControlPanelServiceControl class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Start ( HostControl hostControl ) : bool

Starts this instance.

Stop ( HostControl hostControl ) : bool

Stops this instance.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
CleanupHoarde ( ShellRequestArgs e ) : void

Removes historical versions of the applet from the hoarde.

ObserveConsoleFinalizationAndRestart ( ) : void

Observes the console finalization and restart. Due to app domains being shutdown, we needed to provide a higher level tool to observe the shut-down of the app domain before we startup a new instance (with regard to the control panel).

ShellRequestHandler ( object sender, ShellRequestArgs e ) : void

Handles requests coming from an app instance. Realistically, the only app that will utilize this event will be Drey.Configuration, so it can request for instances to be started/stopped/restarted as necessary.

ShutdownConsole ( ) : void

Shuts down the Drey Console and all packages running within it, and subsequently cleans up its app domain.

StartupConsole ( ) : bool

Brings the Drey.Console package online, so other packages can then be brought online or taken offline on demand.

Method Details

ControlPanelServiceControl() public method

Initializes a new instance of the ControlPanelServiceControl class.
public ControlPanelServiceControl ( ExecutionMode mode = ExecutionMode.Production, Action configureLogging = null, string logVerbosity = "Info" ) : Drey.Logging
mode ExecutionMode /// Which mode is the system running in? /// /// ProductionDrey will use its normal package detail information to load packages into the runtime for execution. /// DevelopmentDrey will discover packages in the ~/Hoarde folder and load them for execution. This prevents the need to package your system for every build. /// ///
configureLogging Action An action that gets run at the startup of every package which configures the logging provider for that package.
logVerbosity string How much logging should be captured? Pass a compatible string here that works with your chosen framework, and parse it within the configureLogging method.
return Drey.Logging

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

Start() public method

Starts this instance.
public Start ( HostControl hostControl ) : bool
hostControl HostControl
return bool

Stop() public method

Stops this instance.
public Stop ( HostControl hostControl ) : bool
hostControl HostControl
return bool