protected void ContinueFromSynchronousEvent() { taskContext.Factory.Run(async() => { await taskContext.Factory.SwitchToMainThreadAsync(); var result = debugEngine.ContinueFromSynchronousEvent(evnt); HResultChecker.Check(result); }); }