internal void Undo() { SynchronizationContext.SetSynchronizationContext(m_sc); ExecutionContext.Restore(m_ec); }
internal void RestoreExecutionContext (ref ExecutionContext.Switcher switcher) { if (switcher.IsEmpty) { _ec = null; return; } switcher.Restore (_ec); }