C# Класс XDAFileWatcher.ServiceHost

Наследование: System.ServiceProcess.ServiceBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BroadcastError ( string errorMessage ) : void

Sends an error message to all connected clients.

BroadcastMessage ( string message ) : void

Sends a message to all connected clients.

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

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

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

Displays a response message to client requestor.

Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Sends an actionable response to client.

SendResponse ( GSF.ServiceProcess.ClientRequestInfo requestInfo, bool success, string status ) : void

Sends an actionable response to client with a formatted message.

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

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

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

Метод Описание
ForceEventRequestHandler ( GSF.ServiceProcess.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 ( GSF.ServiceProcess.ClientRequestInfo requestInfo ) : void
ReloadConfigRequestHandler ( GSF.ServiceProcess.ClientRequestInfo requestInfo ) : void
ServiceHeartbeatHandler ( string s, object args ) : void
ServiceHelper_ServiceStarted ( object sender, EventArgs e ) : void
ServiceHelper_ServiceStopping ( object sender, EventArgs eventArgs ) : 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

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

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

Sends an error message to all connected clients.
public BroadcastError ( string errorMessage ) : void
errorMessage string The error message to be sent.
Результат void

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

Sends a message to all connected clients.
public BroadcastMessage ( string message ) : void
message string The message to be sent.
Результат void

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

Displays a response message to client requestor.
protected DisplayResponseMessage ( GSF.ServiceProcess.ClientRequestInfo requestInfo, string status ) : void
requestInfo GSF.ServiceProcess.ClientRequestInfo instance containing the client request.
status string Formatted status message to send to client.
Результат 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

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

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

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

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

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

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

Sends an actionable response to client with a formatted message and attachment.
protected SendResponseWithAttachment ( GSF.ServiceProcess.ClientRequestInfo requestInfo, bool success, object attachment, string status ) : void
requestInfo GSF.ServiceProcess.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