Свойство | Тип | Описание | |
---|---|---|---|
IsService | bool |
Метод | Описание | |
---|---|---|
Connect ( [ connection ) : System.Guid |
Connects the specified connection.
|
|
Disconnect ( System.Guid id ) : bool |
Disconnects the specified user interface.
|
|
Run ( RunMode runMode = RunMode.Default ) : void |
Runs the service, either as a service or as a console application.
|
Метод | Описание | |
---|---|---|
BaseService ( [ name, [ displayName, [ description, [ serverConfiguration = null ) : System |
Initializes a new instance of the BaseService class.
|
|
DoContinue ( ) : 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.
|
|
DoCustomCommand ( 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.
|
|
DoPause ( ) : 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.
|
|
DoPowerEvent ( PowerBroadcastStatus 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.
|
|
DoSessionChange ( System.ServiceProcess.SessionChangeDescription changeDescription ) : void |
Executes when a change event is received from a Terminal Server session.
|
|
DoShutdown ( ) : 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.
|
|
DoStart ( [ args ) : void | ||
DoStop ( ) : 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.
|
Метод | Описание | |
---|---|---|
BaseService ( ) : System |
Initializes static members of the BaseService class.
|
|
Continue ( [ writer, |
||
CustomCommand ( [ writer, [ command, |
||
ExecuteAsync ( System.Guid id, [ commandLine, [ writer, |
||
Help ( [ writer, [ command = null, [ parameter = null ) : void | ||
Install ( [ writer, [ userName = null, [ password = null ) : void | ||
Pause ( [ writer, |
||
Performance ( [ writer, [ category = null ) : void | ||
PowerEvent ( [ writer, [ powerStatus ) : bool | ||
RunAsync ( RunMode runMode = RunMode.Default, |
||
SessionChange ( [ writer, [ changeReason, [ sessionId ) : void | ||
Shutdown ( [ writer ) : bool | ||
StartService ( [ writer, [ args, |
||
StopService ( [ writer, |
||
Uninstall ( [ writer, |
protected BaseService ( [ name, [ displayName, [ description, [ serverConfiguration = null ) : System | ||
name | [ | The name. |
displayName | [ | The display name. |
description | [ | The description. |
serverConfiguration | [ | The server configuration. |
Результат | System |
public abstract Connect ( [ connection ) : System.Guid | ||
connection | [ | The connection. |
Результат | System.Guid |
public abstract Disconnect ( System.Guid id ) : bool | ||
id | System.Guid | The connection. |
Результат | bool |
protected DoCustomCommand ( int command ) : void | ||
command | int | The command message sent to the service. |
Результат | void |
protected DoPowerEvent ( PowerBroadcastStatus powerStatus ) : bool | ||
powerStatus | PowerBroadcastStatus | A |
Результат | bool |
protected DoSessionChange ( System.ServiceProcess.SessionChangeDescription changeDescription ) : void | ||
changeDescription | System.ServiceProcess.SessionChangeDescription | A |
Результат | void |
public Run ( RunMode runMode = RunMode.Default ) : void | ||
runMode | RunMode | The run mode. |
Результат | void |