C# Class GSF.Historian.Notifiers.EmailNotifier

Represents a notifier that can send notifications in email messages.
Inheritance: GSF.Historian.Notifiers.NotifierBase
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
EmailNotifier ( ) : System

Initializes a new instance of the EmailNotifier class.

LoadSettings ( ) : void

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

SaveSettings ( ) : void

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

Méthodes protégées

Méthode Description
NotifyAlarm ( string subject, string message, string details ) : void

Processes a NotificationTypes.Alarm notification.

NotifyHeartbeat ( string subject, string message, string details ) : void

Processes a NotificationTypes.Heartbeat notification.

NotifyInformation ( string subject, string message, string details ) : void

Processes a NotificationTypes.Information notification.

NotifyWarning ( string subject, string message, string details ) : void

Processes a NotificationTypes.Warning notification.

Private Methods

Méthode Description
SendEmail ( string subject, string message, string details ) : void

Method Details

EmailNotifier() public méthode

Initializes a new instance of the EmailNotifier class.
public EmailNotifier ( ) : System
Résultat System

LoadSettings() public méthode

Loads saved EmailNotifier settings from the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.
public LoadSettings ( ) : void
Résultat void

NotifyAlarm() protected méthode

Processes a NotificationTypes.Alarm notification.
protected NotifyAlarm ( string subject, string message, string details ) : void
subject string Subject matter for the notification.
message string Brief message for the notification.
details string Detailed message for the notification.
Résultat void

NotifyHeartbeat() protected méthode

Processes a NotificationTypes.Heartbeat notification.
protected NotifyHeartbeat ( string subject, string message, string details ) : void
subject string Subject matter for the notification.
message string Brief message for the notification.
details string Detailed message for the notification.
Résultat void

NotifyInformation() protected méthode

Processes a NotificationTypes.Information notification.
protected NotifyInformation ( string subject, string message, string details ) : void
subject string Subject matter for the notification.
message string Brief message for the notification.
details string Detailed message for the notification.
Résultat void

NotifyWarning() protected méthode

Processes a NotificationTypes.Warning notification.
protected NotifyWarning ( string subject, string message, string details ) : void
subject string Subject matter for the notification.
message string Brief message for the notification.
details string Detailed message for the notification.
Résultat void

SaveSettings() public méthode

Saves EmailNotifier settings to the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.
public SaveSettings ( ) : void
Résultat void