Inheritance: MonitoringEvent
コード例 #1
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;
 }
コード例 #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);
 }