Exemple #1
0
        /// <summary>
        /// Checks the status of the Flux file and broadcasts the results.  The alerter may alter the message so this function returns the original.
        /// </summary>
        /// <returns>Raw message constructed by the IAlertMessages</returns>
        public string BroadcastStatus()
        {
            List <IAlertMessage> alerts = CheckStatus();
            string alertString          = "";

            if (alerts.Count > 0)
            {
                string alert = string.Join("\r\n", alerts);
                alertString = alert;


                alerter.SendAlert(alert);
            }

            return(alertString);
        }
 private void SendAlert()
 {
     _alertSender.SendAlert();
 }