System.Threading.AsyncFlowControl.AsyncFlowControl.Undo C# (CSharp) Method

Undo() public method

public Undo ( ) : void
return void
		public void Undo ()
		{
			if (_t == null) {
				throw new InvalidOperationException (Locale.GetText (
					"Can only be called once."));
			}
			switch (_type) {
			case AsyncFlowControlType.Execution:
				ExecutionContext.RestoreFlow ();
				break;
			case AsyncFlowControlType.Security:
				SecurityContext.RestoreFlow ();
				break;
			}
			_t = null;
		}