C# Класс WaveBox.Service.ServiceManager

Показать файл Открыть проект

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

Метод Описание
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