C# Класс openXDA.ServiceHost

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DisconnectClient ( Guid clientID ) : void
LogStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void

Logs a status message to connected clients.

SendRequest ( Guid clientID, string userInput ) : void

Sends a command request to the service.

ServiceHost ( ) : System
ServiceHost ( IContainer container ) : System

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

Метод Описание
DisplayResponseMessage ( ClientRequestInfo requestInfo, string status ) : void

Displays a response message to client requestor.

DisplayStatusMessage ( string status, UpdateType type ) : void

Displays a broadcast message to all subscribed clients.

Dispose ( bool disposing ) : void

Clean up any resources being used.

OnContinue ( ) : void
OnPause ( ) : void
OnShutdown ( ) : void
OnStart ( string args ) : void
OnStop ( ) : void
SendResponse ( ClientRequestInfo requestInfo, bool success ) : void

Sends an actionable response to client.

SendResponseWithAttachment ( ClientRequestInfo requestInfo, bool success, object attachment, string status ) : void

Sends an actionable response to client with a formatted message and attachment.

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

Метод Описание
EngineStatusHandler ( ClientRequestInfo requestInfo ) : void
HandleException ( Exception ex ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MsgServiceMonitorsRequestHandler ( ClientRequestInfo requestInfo ) : void
ReloadConfigurationHandler ( string s, object args ) : void
ReloadSystemSettingsRequestHandler ( ClientRequestInfo requestInfo ) : void
ServiceHeartbeatHandler ( string s, object args ) : void
ServiceHelper_ServiceStarted ( object sender, EventArgs e ) : void
ServiceHelper_ServiceStopping ( object sender, EventArgs e ) : void
ServiceMonitors_AdapterCreated ( object sender, EventArgs e ) : void
ServiceMonitors_AdapterLoaded ( object sender, EventArgs e ) : void
ServiceMonitors_AdapterUnloaded ( object sender, EventArgs e ) : void
StartDebugging ( string args ) : void
StopDebugging ( ) : void
TryStartEngine ( ) : bool
TryStartWebUI ( ) : bool
TweakFileProcessorHandler ( ClientRequestInfo requestInfo ) : void
ValidateAccountsAndGroups ( AdoDataConnection database ) : void

Validate accounts and groups to ensure that account names and group names are converted to SIDs.

WebServer_StatusMessage ( object sender, EventArgs e ) : void

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

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

public DisconnectClient ( Guid clientID ) : void
clientID Guid
Результат void

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

Displays a response message to client requestor.
protected DisplayResponseMessage ( ClientRequestInfo requestInfo, string status ) : void
requestInfo ClientRequestInfo instance containing the client request.
status string Formatted status message to send to client.
Результат void

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

Displays a broadcast message to all subscribed clients.
protected DisplayStatusMessage ( string status, UpdateType type ) : void
status string Status message to send to all clients.
type UpdateType of message to send.
Результат void

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

Logs a status message to connected clients.
public LogStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void
message string Message to log.
type UpdateType Type of message to log.
Результат void

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

protected OnContinue ( ) : void
Результат void

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

protected OnPause ( ) : void
Результат void

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

protected OnShutdown ( ) : void
Результат void

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

protected OnStart ( string args ) : void
args string
Результат void

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

protected OnStop ( ) : void
Результат void

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

Sends a command request to the service.
public SendRequest ( Guid clientID, string userInput ) : void
clientID Guid Client ID of sender.
userInput string Request string.
Результат void

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

Sends an actionable response to client.
protected SendResponse ( ClientRequestInfo requestInfo, bool success ) : void
requestInfo ClientRequestInfo instance containing the client request.
success bool Flag that determines if this response to client request was a success.
Результат void

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

Sends an actionable response to client with a formatted message and attachment.
protected SendResponseWithAttachment ( ClientRequestInfo requestInfo, bool success, object attachment, string status ) : void
requestInfo ClientRequestInfo instance containing the client request.
success bool Flag that determines if this response to client request was a success.
attachment object Attachment to send with response.
status string Formatted status message to send with response.
Результат void

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

public ServiceHost ( ) : System
Результат System

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

public ServiceHost ( IContainer container ) : System
container IContainer
Результат System