C# 클래스 WaveBox.WaveBoxService

상속: System.ServiceProcess.ServiceBase
파일 보기 프로젝트 열기: einsteinx2/WaveBox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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