C# Class Topshelf.Runtime.Windows.WindowsHostEnvironmentImpl

Inheritance: HostEnvironment
Afficher le fichier Open project: AlexMAS/Topshelf.Unix

Méthodes publiques

Méthode Description
CreateServiceHost ( HostSettings settings, ServiceHandle serviceHandle ) : Host
InstallService ( InstallHostSettings settings, Action beforeInstall, System.Action afterInstall, System.Action beforeRollback, System.Action afterRollback ) : void
IsServiceInstalled ( string serviceName ) : bool
IsServiceStopped ( string serviceName ) : bool
RunAsAdministrator ( ) : bool
SendServiceCommand ( string serviceName, int command ) : void
StartService ( string serviceName, System.TimeSpan startTimeOut ) : void
StopService ( string serviceName, System.TimeSpan stopTimeOut ) : void
UninstallService ( HostSettings settings, System.Action beforeUninstall, System.Action afterUninstall ) : void
WindowsHostEnvironmentImpl ( HostConfigurator configurator, object>.IDictionary arguments ) : System

Method Details

CreateServiceHost() public méthode

public CreateServiceHost ( HostSettings settings, ServiceHandle serviceHandle ) : Host
settings HostSettings
serviceHandle ServiceHandle
Résultat Host

InstallService() public méthode

public InstallService ( InstallHostSettings settings, Action beforeInstall, System.Action afterInstall, System.Action beforeRollback, System.Action afterRollback ) : void
settings InstallHostSettings
beforeInstall Action
afterInstall System.Action
beforeRollback System.Action
afterRollback System.Action
Résultat void

IsServiceInstalled() public méthode

public IsServiceInstalled ( string serviceName ) : bool
serviceName string
Résultat bool

IsServiceStopped() public méthode

public IsServiceStopped ( string serviceName ) : bool
serviceName string
Résultat bool

RunAsAdministrator() public méthode

public RunAsAdministrator ( ) : bool
Résultat bool

SendServiceCommand() public méthode

public SendServiceCommand ( string serviceName, int command ) : void
serviceName string
command int
Résultat void

StartService() public méthode

public StartService ( string serviceName, System.TimeSpan startTimeOut ) : void
serviceName string
startTimeOut System.TimeSpan
Résultat void

StopService() public méthode

public StopService ( string serviceName, System.TimeSpan stopTimeOut ) : void
serviceName string
stopTimeOut System.TimeSpan
Résultat void

UninstallService() public méthode

public UninstallService ( HostSettings settings, System.Action beforeUninstall, System.Action afterUninstall ) : void
settings HostSettings
beforeUninstall System.Action
afterUninstall System.Action
Résultat void

WindowsHostEnvironmentImpl() public méthode

public WindowsHostEnvironmentImpl ( HostConfigurator configurator, object>.IDictionary arguments ) : System
configurator HostConfigurator
arguments object>.IDictionary
Résultat System