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

			switcher.Restore (_ec);
		}