C# Класс DroidExplorer.Service.DeviceService

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
InitializeComponent void

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

Метод Описание
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

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

Метод Описание
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.

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

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

Initializes the component.

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

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

Initializes a new instance of the Service class.
public DeviceService ( ) : System
Результат System

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

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.
Результат void

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

public Monitor_DeviceAdded ( object sender, DeviceEventArgs e ) : void
sender object
e DeviceEventArgs
Результат void

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

public Monitor_DeviceRemoved ( object sender, DeviceEventArgs e ) : void
sender object
e DeviceEventArgs
Результат void

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

public Monitor_DeviceStateChanged ( object sender, DeviceEventArgs e ) : void
sender object
e DeviceEventArgs
Результат void

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

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
Результат void

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

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.
Результат void

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

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
Результат void

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

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.
Результат bool

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

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.
Результат void

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

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
Результат void

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

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.
Результат void

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

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
Результат void