C# 클래스 DroidExplorer.Service.DeviceService

파일 보기 프로젝트 열기: camalot/droidexplorer

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