public void Resume() { try { vm.Resume(); } catch (InvalidOperationException) { int a = 0; //there is some racy bug somewhere that sometimes makes the runtime complain that we are resuming while we were not suspended. //obviously if you dont resume, the other 95% of the cases, you hang because we were suspended. } }
public void SafeResume() { Trace("SafeResume"); _vmSuspended = false; WithErrorLogging(() => _vm.Resume()); }