C# 클래스 XDAFileWatcher.ServiceHost

상속: System.ServiceProcess.ServiceBase
파일 보기 프로젝트 열기: GridProtectionAlliance/openXDA 1 사용 예제들

공개 메소드들

메소드 설명
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