Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }