C# Class Topshelf.Hosts.ConsoleRunHost

Inheritance: Host, HostControl
Afficher le fichier Open project: Topshelf/Topshelf

Méthodes publiques

Méthode Description
ConsoleRunHost ( HostSettings settings, HostEnvironment environment, ServiceHandle serviceHandle ) : System
Run ( ) : TopshelfExitCode

Private Methods

Méthode Description
CatchUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
HandleCancelKeyPress ( object sender, ConsoleCancelEventArgs consoleCancelEventArgs ) : void
HostControl ( ) : void
HostControl ( System.TimeSpan timeRemaining ) : void
OnPowerModeChanged ( object sender, Microsoft.Win32.PowerModeChangedEventArgs e ) : void
OnSessionChanged ( object sender, Microsoft.Win32.SessionSwitchEventArgs e ) : void
StopService ( ) : void

Method Details

ConsoleRunHost() public méthode

public ConsoleRunHost ( HostSettings settings, HostEnvironment environment, ServiceHandle serviceHandle ) : System
settings HostSettings
environment HostEnvironment
serviceHandle ServiceHandle
Résultat System

Run() public méthode

public Run ( ) : TopshelfExitCode
Résultat TopshelfExitCode