C# Class XDAFileWatcher.ServiceHost

Inheritance: System.ServiceProcess.ServiceBase
Mostra file Open project: GridProtectionAlliance/openXDA Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

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

BroadcastMessage() public method

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

DisplayResponseMessage() protected method

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.
return void

Dispose() protected method

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

OnContinue() protected method

protected OnContinue ( ) : void
return void

OnPause() protected method

protected OnPause ( ) : void
return void

OnShutdown() protected method

protected OnShutdown ( ) : void
return void

OnStart() protected method

protected OnStart ( string args ) : void
args string
return void

OnStop() protected method

protected OnStop ( ) : void
return void

SendResponse() protected method

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.
return void

SendResponse() protected method

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.
return void

SendResponseWithAttachment() protected method

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.
return void

ServiceHost() public method

public ServiceHost ( ) : System
return System

ServiceHost() public method

public ServiceHost ( IContainer container ) : System
container IContainer
return System