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;
}