C# Class openFLE.ServiceHost

Inheritance: System.ServiceProcess.ServiceBase
显示文件 Open project: GridProtectionAlliance/openXDA

Public Methods

Method Description
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.

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
FaultLocationEngine_ProcessException ( object sender, EventArgs e ) : void
FaultLocationEngine_StatusMessage ( object sender, EventArgs e ) : 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
ReloadDeviceDefsRequestHandler ( GSF.ServiceProcess.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

Method Details

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

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