C# Класс GSF.ServiceProcess.ServiceMonitorBase

Наследование: GSF.Adapters.Adapter, IServiceMonitor
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

HandleClientMessage() публичный Метод

Handles messages sent by a client.
public HandleClientMessage ( string args ) : void
args string Arguments provided by the client.
Результат void

HandleServiceError() публичный Метод

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.
Результат void

HandleServiceHeartbeat() публичный Метод

Handles notifications from the service that occur on an interval to indicate that the service is still running.
public HandleServiceHeartbeat ( ) : void
Результат void

LoadSettings() публичный Метод

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
Результат void

SaveSettings() публичный Метод

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
Результат void