C# Class xenwinsvc.XenService

Inheritance: System.ServiceProcess.ServiceBase, IExceptionHandler
Mostra file Open project: xenserver/win-xenguestagent

Public Methods

Method Description
HandleException ( string from, Exception e ) : void
Main ( string args ) : int
OnNeedsReset ( ) : void
XenService ( ) : System

Protected Methods

Method Description
OnPowerEvent ( System powerStatus ) : bool
OnSessionChange ( System changeDescription ) : void
OnShutdown ( ) : void
OnStart ( string args ) : void
OnStop ( ) : void

Private Methods

Method Description
Install ( bool undo, string args ) : void
RunMessagePump ( ) : void
RunProcess ( string name, string arg, string comment ) : void
ServiceThreadHandler ( ) : void
ServiceThreadShutdown ( ) : void
WmiCapableServiceThreadHandler ( ) : void
handleUnsuspended ( object nothing, System.Management.EventArrivedEventArgs args ) : void
resetTimeToRefresh ( ) : void
timeToRefresh ( ) : bool

Method Details

HandleException() public method

public HandleException ( string from, Exception e ) : void
from string
e System.Exception
return void

Main() public static method

public static Main ( string args ) : int
args string
return int

OnNeedsReset() public method

public OnNeedsReset ( ) : void
return void

OnPowerEvent() protected method

protected OnPowerEvent ( System powerStatus ) : bool
powerStatus System
return bool

OnSessionChange() protected method

protected OnSessionChange ( System changeDescription ) : void
changeDescription System
return void

OnShutdown() protected method

protected OnShutdown ( ) : void
return void

OnStart() protected method

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

OnStop() protected method

protected OnStop ( ) : void
return void

XenService() public method

public XenService ( ) : System
return System