Ejemplo n.º 1
0
 private void OnTimerElapsed(object sender, ElapsedEventArgs e)
 {
     Execute.OnUIThread(() => _connection.Ping());
     // if past timeout then exit and display error
     if ((utcPingStart - DateTime.UtcNow).Seconds > 30)
     {
         _startingTimer.Stop();
         _trace.Drop();
         CurrentDocument.OutputError("Timeout exceeded attempting to start Trace");
     }
 }