C# 클래스 WaveBox.Service.ServiceManager

파일 보기 프로젝트 열기: einsteinx2/WaveBox

공개 메소드들

메소드 설명
Add ( string name, bool autostart = false ) : bool

Add a new service, by name, to the manager, optionally starting it automatically

AddList ( IList names, bool autostart = false ) : bool

Add a list of services, by name, to the manager, optionally autostarting all of them

Clear ( ) : bool

Clear all currently registered services

GetInstance ( string name ) : IService
GetServices ( ) : IList

Return string list of registered services

RestartAll ( ) : bool

Attempt to restart all currently registered services

StartAll ( ) : bool

Attempt to start all currently registered services

StopAll ( ) : bool

Attempt to stop all currently registered services

비공개 메소드들

메소드 설명
Start ( IService service ) : bool

Start and log the specified service

Stop ( IService service ) : bool

Stop and log the specified service

메소드 상세

Add() 공개 정적인 메소드

Add a new service, by name, to the manager, optionally starting it automatically
public static Add ( string name, bool autostart = false ) : bool
name string
autostart bool
리턴 bool

AddList() 공개 정적인 메소드

Add a list of services, by name, to the manager, optionally autostarting all of them
public static AddList ( IList names, bool autostart = false ) : bool
names IList
autostart bool
리턴 bool

Clear() 공개 정적인 메소드

Clear all currently registered services
public static Clear ( ) : bool
리턴 bool

GetInstance() 공개 정적인 메소드

public static GetInstance ( string name ) : IService
name string
리턴 IService

GetServices() 공개 정적인 메소드

Return string list of registered services
public static GetServices ( ) : IList
리턴 IList

RestartAll() 공개 정적인 메소드

Attempt to restart all currently registered services
public static RestartAll ( ) : bool
리턴 bool

StartAll() 공개 정적인 메소드

Attempt to start all currently registered services
public static StartAll ( ) : bool
리턴 bool

StopAll() 공개 정적인 메소드

Attempt to stop all currently registered services
public static StopAll ( ) : bool
리턴 bool