/// <summary> /// In the cleanup phase, the command's "EndProcessing" method will be called to do own cleanup /// </summary> public override void EndProcessing() { ExecutionContext.SetSuccessVariable(false); // we set it true if we succeed try { Command.DoEndProcessing(); ExecutionContext.SetSuccessVariable(true); // only false if we got an exception ProcessRedirects(); } catch (Exception e) { HandleInvocationException(e); } }