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; }
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); }