C# Class DroidExplorer.Service.DeviceService

Show file Open project: camalot/droidexplorer

Private Properties

Property Type Description
InitializeComponent void

Public Methods

Method Description
DeviceService ( ) : System

Initializes a new instance of the Service class.

Monitor_DeviceAdded ( object sender, DeviceEventArgs e ) : void
Monitor_DeviceRemoved ( object sender, DeviceEventArgs e ) : void
Monitor_DeviceStateChanged ( object sender, DeviceEventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes of the resources (other than memory) used by the T:System.ServiceProcess.ServiceBase.

OnContinue ( ) : void

When implemented in a derived class, M:System.ServiceProcess.ServiceBase.OnContinue runs when a Continue command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service resumes normal functioning after being paused.

OnCustomCommand ( int command ) : void

When implemented in a derived class, M:System.ServiceProcess.ServiceBase.OnCustomCommand(System.Int32) executes when the Service Control Manager (SCM) passes a custom command to the service. Specifies actions to take when a command with the specified parameter value occurs.

OnPause ( ) : void

When implemented in a derived class, executes when a Pause command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service pauses.

OnPowerEvent ( System powerStatus ) : bool

When implemented in a derived class, executes when the computer's power status has changed. This applies to laptop computers when they go into suspended mode, which is not the same as a system shutdown.

OnSessionChange ( System changeDescription ) : void

Executes when a change event is received from a Terminal Server session.

OnShutdown ( ) : void

When implemented in a derived class, executes when the system is shutting down. Specifies what should occur immediately prior to the system shutting down.

OnStart ( string args ) : void

When implemented in a derived class, executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.

OnStop ( ) : void

When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.

Private Methods

Method Description
InitializeComponent ( ) : void

Initializes the component.

Method Details

DeviceService() public method

Initializes a new instance of the Service class.
public DeviceService ( ) : System
return System

Dispose() protected method

Disposes of the resources (other than memory) used by the T:System.ServiceProcess.ServiceBase.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

Monitor_DeviceAdded() public method

public Monitor_DeviceAdded ( object sender, DeviceEventArgs e ) : void
sender object
e DeviceEventArgs
return void

Monitor_DeviceRemoved() public method

public Monitor_DeviceRemoved ( object sender, DeviceEventArgs e ) : void
sender object
e DeviceEventArgs
return void

Monitor_DeviceStateChanged() public method

public Monitor_DeviceStateChanged ( object sender, DeviceEventArgs e ) : void
sender object
e DeviceEventArgs
return void

OnContinue() protected method

When implemented in a derived class, M:System.ServiceProcess.ServiceBase.OnContinue runs when a Continue command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service resumes normal functioning after being paused.
protected OnContinue ( ) : void
return void

OnCustomCommand() protected method

When implemented in a derived class, M:System.ServiceProcess.ServiceBase.OnCustomCommand(System.Int32) executes when the Service Control Manager (SCM) passes a custom command to the service. Specifies actions to take when a command with the specified parameter value occurs.
protected OnCustomCommand ( int command ) : void
command int The command message sent to the service.
return void

OnPause() protected method

When implemented in a derived class, executes when a Pause command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service pauses.
protected OnPause ( ) : void
return void

OnPowerEvent() protected method

When implemented in a derived class, executes when the computer's power status has changed. This applies to laptop computers when they go into suspended mode, which is not the same as a system shutdown.
protected OnPowerEvent ( System powerStatus ) : bool
powerStatus System A that indicates a notification from the system about its power status.
return bool

OnSessionChange() protected method

Executes when a change event is received from a Terminal Server session.
protected OnSessionChange ( System changeDescription ) : void
changeDescription System A structure that identifies the change type.
return void

OnShutdown() protected method

When implemented in a derived class, executes when the system is shutting down. Specifies what should occur immediately prior to the system shutting down.
protected OnShutdown ( ) : void
return void

OnStart() protected method

When implemented in a derived class, executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.
protected OnStart ( string args ) : void
args string Data passed by the start command.
return void

OnStop() protected method

When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.
protected OnStop ( ) : void
return void