C# Класс Topshelf.StartParameters.SpWindowsHostEnvironment

Наследование: HostEnvironment
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateServiceHost ( HostSettings settings, ServiceHandle serviceHandle ) : Host
InstallService ( InstallHostSettings settings, System.Action beforeInstall, System.Action afterInstall, System.Action beforeRollback, System.Action afterRollback ) : void
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
SpWindowsHostEnvironment ( HostConfigurator configurator ) : System
StartService ( string serviceName, System.TimeSpan startTimeOut ) : void
StopService ( string serviceName, System.TimeSpan stopTimeOut ) : void
UninstallService ( HostSettings settings, System.Action beforeUninstall, System.Action afterUninstall ) : void

Описание методов

CreateServiceHost() публичный Метод

public CreateServiceHost ( HostSettings settings, ServiceHandle serviceHandle ) : Host
settings HostSettings
serviceHandle ServiceHandle
Результат Host

InstallService() публичный Метод

public InstallService ( InstallHostSettings settings, System.Action beforeInstall, System.Action afterInstall, System.Action beforeRollback, System.Action afterRollback ) : void
settings InstallHostSettings
beforeInstall System.Action
afterInstall System.Action
beforeRollback System.Action
afterRollback System.Action
Результат void

InstallService() публичный Метод

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
Результат void

IsServiceInstalled() публичный Метод

public IsServiceInstalled ( string serviceName ) : bool
serviceName string
Результат bool

IsServiceStopped() публичный Метод

public IsServiceStopped ( string serviceName ) : bool
serviceName string
Результат bool

RunAsAdministrator() публичный Метод

public RunAsAdministrator ( ) : bool
Результат bool

SendServiceCommand() публичный Метод

public SendServiceCommand ( string serviceName, int command ) : void
serviceName string
command int
Результат void

SpWindowsHostEnvironment() публичный Метод

public SpWindowsHostEnvironment ( HostConfigurator configurator ) : System
configurator HostConfigurator
Результат System

StartService() публичный Метод

public StartService ( string serviceName, System.TimeSpan startTimeOut ) : void
serviceName string
startTimeOut System.TimeSpan
Результат void

StopService() публичный Метод

public StopService ( string serviceName, System.TimeSpan stopTimeOut ) : void
serviceName string
stopTimeOut System.TimeSpan
Результат void

UninstallService() публичный Метод

public UninstallService ( HostSettings settings, System.Action beforeUninstall, System.Action afterUninstall ) : void
settings HostSettings
beforeUninstall System.Action
afterUninstall System.Action
Результат void