public void EndProgress(Object result) { IProgressDispatcherIntern progressDispatcher = GetCurrentProgressDispatcher(); progressDispatcher.EndProgress(result); if (progressDispatcher.IsProgressPending) { return; } IBeanContextHolder <IProgressDispatcherIntern> childSP = progressDispatcherTL.Value; progressDispatcherTL.Value = null; childSP.Dispose(); }
public void Failure(Exception e) { IProgressDispatcherIntern progressDispatcher = GetCurrentProgressDispatcher(); progressDispatcher.Failure(e); if (progressDispatcher.IsProgressPending) { return; } IBeanContextHolder <IProgressDispatcherIntern> childSP = progressDispatcherTL.Value; progressDispatcherTL.Value = null; childSP.Dispose(); }