public override void PostProcess(ActivityExecutor executor) { if ((base.ExceptionToPropagate != null) && !this.skipActivityInstanceAbort) { executor.AbortActivityInstance(base.ActivityInstance, base.ExceptionToPropagate); } else if (base.ActivityInstance.UpdateState(executor)) { Exception exception = executor.CompleteActivityInstance(base.ActivityInstance); if (exception != null) { base.ExceptionToPropagate = exception; } } }
public override void PostProcess(ActivityExecutor executor) { if (this.ExceptionToPropagate != null && !_skipActivityInstanceAbort) { executor.AbortActivityInstance(this.ActivityInstance, this.ExceptionToPropagate); } else if (this.ActivityInstance.UpdateState(executor)) { // NOTE: exceptionToPropagate could be non-null here if this is a Fault work item. // That means that the next line could potentially overwrite the exception with a // new exception. Exception newException = executor.CompleteActivityInstance(this.ActivityInstance); if (newException != null) { this.ExceptionToPropagate = newException; } } }
public override void PostProcess(ActivityExecutor executor) { if (this.ExceptionToPropagate != null && !skipActivityInstanceAbort) { executor.AbortActivityInstance(this.ActivityInstance, this.ExceptionToPropagate); } else if (this.ActivityInstance.UpdateState(executor)) { // NOTE: exceptionToPropagate could be non-null here if this is a Fault work item. // That means that the next line could potentially overwrite the exception with a // new exception. Exception newException = executor.CompleteActivityInstance(this.ActivityInstance); if (newException != null) { this.ExceptionToPropagate = newException; } } }