Inheritance: MonitoringEvent
 private string FormatQoS(MonitoringQoSEvent evt)
 {
     if (evt.Value is TimeSpan)
     {
         return String.Format("Time Taken: {0}", FormatTime((TimeSpan)evt.Value));
     }
     else if (evt.Value is int)
     {
         return String.Format("Value: {0}", (int)evt.Value);
     }
     return String.Empty;
 }
Esempio n. 2
0
 private string FormatQoS(MonitoringQoSEvent evt)
 {
     if (evt.Value is TimeSpan)
     {
         return(String.Format("Time Taken: {0}", FormatTime((TimeSpan)evt.Value)));
     }
     else if (evt.Value is int)
     {
         return(String.Format("Value: {0}", (int)evt.Value));
     }
     return(String.Empty);
 }