C# Class Topshelf.Runtime.Windows.WindowsServiceHost

Inheritance: System.ServiceProcess.ServiceBase, Host, HostControl
Mostra file Open project: Topshelf/Topshelf

Public Methods

Method Description
Run ( ) : TopshelfExitCode
WindowsServiceHost ( HostEnvironment environment, HostSettings settings, ServiceHandle serviceHandle, HostConfigurator configurator ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnContinue ( ) : void
OnCustomCommand ( int command ) : void
OnPause ( ) : void
OnPowerEvent ( PowerBroadcastStatus powerStatus ) : bool
OnSessionChange ( System.ServiceProcess.SessionChangeDescription changeDescription ) : void
OnShutdown ( ) : void
OnStart ( string args ) : void
OnStop ( ) : void

Private Methods

Method Description
CatchUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
HostControl ( ) : void
HostControl ( System.TimeSpan timeRemaining ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnContinue() protected method

protected OnContinue ( ) : void
return void

OnCustomCommand() protected method

protected OnCustomCommand ( int command ) : void
command int
return void

OnPause() protected method

protected OnPause ( ) : void
return void

OnPowerEvent() protected method

protected OnPowerEvent ( PowerBroadcastStatus powerStatus ) : bool
powerStatus PowerBroadcastStatus
return bool

OnSessionChange() protected method

protected OnSessionChange ( System.ServiceProcess.SessionChangeDescription changeDescription ) : void
changeDescription System.ServiceProcess.SessionChangeDescription
return void

OnShutdown() protected method

protected OnShutdown ( ) : void
return void

OnStart() protected method

protected OnStart ( string args ) : void
args string
return void

OnStop() protected method

protected OnStop ( ) : void
return void

Run() public method

public Run ( ) : TopshelfExitCode
return TopshelfExitCode

WindowsServiceHost() public method

public WindowsServiceHost ( HostEnvironment environment, HostSettings settings, ServiceHandle serviceHandle, HostConfigurator configurator ) : System
environment HostEnvironment
settings HostSettings
serviceHandle ServiceHandle
configurator HostConfigurator
return System