Gwupe.Agent.Components.Alert.Alert.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            return "[Alert: " + Message + " ]";
        }

Usage Example

Example #1
0
 internal void DeleteAlert(Alert alert)
 {
     lock (Alerts)
     {
         if (Alerts.Remove(alert))
         {
             Logger.Debug("Successfully removed alert [" + alert.ToString() + "]");
         }
         else
         {
             Logger.Warn("Failed to remove notication [" + alert.ToString() + "]");
         }
     }
 }