C# Class XDAFileWatcher.ServiceHost

Inheritance: System.ServiceProcess.ServiceBase
Afficher le fichier Open project: GridProtectionAlliance/openXDA Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

BroadcastError() public méthode

Sends an error message to all connected clients.
public BroadcastError ( string errorMessage ) : void
errorMessage string The error message to be sent.
Résultat void

BroadcastMessage() public méthode

Sends a message to all connected clients.
public BroadcastMessage ( string message ) : void
message string The message to be sent.
Résultat void

DisplayResponseMessage() protected méthode

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.
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

OnContinue() protected méthode

protected OnContinue ( ) : void
Résultat void

OnPause() protected méthode

protected OnPause ( ) : void
Résultat void

OnShutdown() protected méthode

protected OnShutdown ( ) : void
Résultat void

OnStart() protected méthode

protected OnStart ( string args ) : void
args string
Résultat void

OnStop() protected méthode

protected OnStop ( ) : void
Résultat void

SendResponse() protected méthode

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.
Résultat void

SendResponse() protected méthode

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.
Résultat void

SendResponseWithAttachment() protected méthode

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.
Résultat void

ServiceHost() public méthode

public ServiceHost ( ) : System
Résultat System

ServiceHost() public méthode

public ServiceHost ( IContainer container ) : System
container IContainer
Résultat System