C# Class XDAServiceMonitor.ServiceMonitorBase

Base class for service monitors.
Inheritance: GSF.Adapters.Adapter, IServiceMonitor
Datei anzeigen Open project: GridProtectionAlliance/openXDA

Public Methods

Method Description
HandleClientMessage ( string args ) : void

Handles messages sent by a client.

HandleServiceErrorMessage ( string message ) : void

Handles messages received by the service whenever the service encounters an error.

HandleServiceHeartbeat ( ) : void

Handles notifications from the service that occur on an interval to indicate that the service is still running.

LoadSettings ( ) : void

Loads saved ServiceMonitorBase settings from the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.

SaveSettings ( ) : void

Saves ServiceMonitorBase settings to the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.

Method Details

HandleClientMessage() public method

Handles messages sent by a client.
public HandleClientMessage ( string args ) : void
args string Arguments provided by the client.
return void

HandleServiceErrorMessage() public method

Handles messages received by the service whenever the service encounters an error.
public HandleServiceErrorMessage ( string message ) : void
message string The error message received from the service.
return void

HandleServiceHeartbeat() public method

Handles notifications from the service that occur on an interval to indicate that the service is still running.
public HandleServiceHeartbeat ( ) : void
return void

LoadSettings() public method

Loads saved ServiceMonitorBase settings from the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.
has a value of null or empty string.
public LoadSettings ( ) : void
return void

SaveSettings() public method

Saves ServiceMonitorBase settings to the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.
has a value of null or empty string.
public SaveSettings ( ) : void
return void