C# Class GSF.ServiceProcess.ServiceMonitorBase

Inheritance: GSF.Adapters.Adapter, IServiceMonitor
Datei anzeigen Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
HandleClientMessage ( string args ) : void

Handles messages sent by a client.

HandleServiceError ( Exception ex ) : 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

HandleServiceError() public method

Handles messages received by the service whenever the service encounters an error.
public HandleServiceError ( Exception ex ) : void
ex System.Exception The error 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