Example #1
0
 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.
     }
 }
Example #2
0
 public void SafeResume()
 {
     Trace("SafeResume");
     _vmSuspended = false;
     WithErrorLogging(() => _vm.Resume());
 }