Interface IAlertHandler
Defines and interface that alert handler must implement. Alert handler is a class that is called to process newly generated alerts in the system.
Namespace: Nevatech.Vsb.Repository.Alerts
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface IAlertHandler
Methods
ProcessAlerts(AlertHandler, IEnumerable<Alert>)
Processes alerts accumulated since last execution.
Declaration
bool ProcessAlerts(AlertHandler handler, IEnumerable<Alert> alerts)
Parameters
Type | Name | Description |
---|---|---|
AlertHandler | handler | Configuration of the handler being executed. |
IEnumerable<Alert> | alerts | Collection of alerts accumulated since last execution. |
Returns
Type | Description |
---|---|
Boolean | Flag indicating that handler processed alerts and its last execution time needs to be updated. Handler may decide to set this flag to false, if no alerts have been provided. |