C# Класс WaveBox.WaveBoxService

Наследование: System.ServiceProcess.ServiceBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
TempFolder string

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

Метод Описание
WaveBoxService ( ) : System

Constructor for WaveBox service. Initializes the service and sets up the graceful shutdown

Защищенные методы

Метод Описание
OnContinue ( ) : void

OnContinue does nothing yet

OnPause ( ) : void

OnPause does nothing yet

OnShutdown ( ) : void

OnShutdown does nothing yet

OnStart ( ) : void

OnStart launches the init thread with the WaveBox Start() function

OnStart ( string args ) : void

Override for OnStart from base service class. We don't need CLI args, so we just call our own

OnStop ( ) : void

OnStop stops the service, aborting the init thread, and terminating the program. This replaces the ShutdownCommon function, as this will be the exit of the program.

Приватные методы

Метод Описание
InjectClasses ( ) : void

Perform dependency injection for all other classes in WaveBox

InjectPlatformSpecificClasses ( ) : void

Perform dependency injection for all classes which have platform-specific implementations

Main ( string args ) : void

Service entry point. Starts the WaveBox Service, which will then launch the application

RegisterShutdownHandler ( ) : void

Function to register shutdown handler for various platforms. Windows uses its own, while UNIX variants use a specialized Unix shutdown handler.

SetConsoleCtrlHandler ( EventHandler handler, bool add ) : bool
ShutdownUnix ( ) : void

Shutdown handler for UNIX systems, terminates WaveBox gracefully.

ShutdownWindows ( CtrlType sig ) : bool

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

OnContinue() защищенный Метод

OnContinue does nothing yet
protected OnContinue ( ) : void
Результат void

OnPause() защищенный Метод

OnPause does nothing yet
protected OnPause ( ) : void
Результат void

OnShutdown() защищенный Метод

OnShutdown does nothing yet
protected OnShutdown ( ) : void
Результат void

OnStart() защищенный Метод

OnStart launches the init thread with the WaveBox Start() function
protected OnStart ( ) : void
Результат void

OnStart() защищенный Метод

Override for OnStart from base service class. We don't need CLI args, so we just call our own
protected OnStart ( string args ) : void
args string
Результат void

OnStop() защищенный Метод

OnStop stops the service, aborting the init thread, and terminating the program. This replaces the ShutdownCommon function, as this will be the exit of the program.
protected OnStop ( ) : void
Результат void

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

Constructor for WaveBox service. Initializes the service and sets up the graceful shutdown
public WaveBoxService ( ) : System
Результат System

Описание свойств

TempFolder публичное статическое свойство

public static string TempFolder
Результат string