C# Class TSVCEO.CloudPrint.Service.OldNativeServiceDispatcher

显示文件 Open project: klightspeed/CloudPrintProxy Class Usage Examples

Public Methods

Method Description
Install ( ) : void
OldNativeServiceDispatcher ( ) : System
RunService ( ) : bool
RunStandalone ( ) : void
Uninstall ( ) : void

Protected Methods

Method Description
OnContinue ( ) : void
OnCustomEvent ( ServiceControl control, int eventType, IntPtr eventData ) : void
OnPause ( ) : void
OnPowerEvent ( int eventType, IntPtr eventData ) : void
OnShutdown ( ) : void
OnStart ( string args ) : void
OnStop ( ) : void
SetServiceStatus ( ServiceState currentState, int win32ExitCode, int serviceSpecificExitCode, int checkPoint, int waitHint = 30000 ) : void
Stop ( ) : void

Private Methods

Method Description
IsOverriden ( Delegate action ) : bool
IsOverriden ( Expression expression ) : bool
IsOverriden ( MethodInfo method ) : bool
OnControl ( Expression expression, ServiceState starting, ServiceState completed, ServiceState failed ) : int
RegisterServiceCtrlHandlerEx ( string lpServiceName, ServiceHandlerEx lpHandlerProc, IntPtr lpContext ) : IntPtr
ServiceHandler ( ServiceControl control, int eventType, IntPtr eventData, IntPtr context ) : int
ServiceMain ( int argc, string argv ) : void
SetServiceStatus ( IntPtr hServiceStatus, ServiceStatus &lpServiceStatus ) : bool
StartServiceCtrlDispatcher ( ServiceTableEntry lpServiceTable ) : bool

Method Details

Install() public method

public Install ( ) : void
return void

OldNativeServiceDispatcher() public method

public OldNativeServiceDispatcher ( ) : System
return System

OnContinue() protected method

protected OnContinue ( ) : void
return void

OnCustomEvent() protected method

protected OnCustomEvent ( ServiceControl control, int eventType, IntPtr eventData ) : void
control ServiceControl
eventType int
eventData System.IntPtr
return void

OnPause() protected method

protected OnPause ( ) : void
return void

OnPowerEvent() protected method

protected OnPowerEvent ( int eventType, IntPtr eventData ) : void
eventType int
eventData System.IntPtr
return void

OnShutdown() protected method

protected OnShutdown ( ) : void
return void

OnStart() protected abstract method

protected abstract OnStart ( string args ) : void
args string
return void

OnStop() protected abstract method

protected abstract OnStop ( ) : void
return void

RunService() public method

public RunService ( ) : bool
return bool

RunStandalone() public method

public RunStandalone ( ) : void
return void

SetServiceStatus() protected method

protected SetServiceStatus ( ServiceState currentState, int win32ExitCode, int serviceSpecificExitCode, int checkPoint, int waitHint = 30000 ) : void
currentState ServiceState
win32ExitCode int
serviceSpecificExitCode int
checkPoint int
waitHint int
return void

Stop() protected method

protected Stop ( ) : void
return void

Uninstall() public method

public Uninstall ( ) : void
return void