C# Class SimpleServices.Service

显示文件 Open project: davidwhitney/SimpleServices

Public Methods

Method Description
Host ( ) : void
Service ( string args, Func createServices, Action configureContext = null, ServiceProcessInstaller>.Action installationSettings = null, Func registerContainer = null ) : System

Executes the provided IWindowsServices and supports automatic installation using the command line params -install / -uninstall

Private Methods

Method Description
CreateHostableServices ( ) : IWindowsService[]
Execute ( IWindowsService services, string args ) : void
LaunchInteractiveServices ( IEnumerable services, string args ) : void
LaunchNonInteractiveServices ( IWindowsService services ) : void
NotifyApplicationStartup ( ) : void
ShutdownServices ( IEnumerable services ) : void
Wrap ( IWindowsService services ) : ServiceContainer

Method Details

Host() public method

public Host ( ) : void
return void

Service() public method

Executes the provided IWindowsServices and supports automatic installation using the command line params -install / -uninstall
public Service ( string args, Func createServices, Action configureContext = null, ServiceProcessInstaller>.Action installationSettings = null, Func registerContainer = null ) : System
args string
createServices Func Function which provides a WindowsServiceCollection of services to execute
configureContext Action Optional application context configuration
installationSettings ServiceProcessInstaller>.Action Optional installer configuration with semi-sensible defaults
registerContainer Func Optionally register an IoC container
return System