protected IProgressDispatcherIntern GetCurrentProgressDispatcher() { IBeanContextHolder <IProgressDispatcherIntern> childSP = progressDispatcherTL.Value; if (childSP == null) { return(noOpProgressDispatcher); } return(childSP.GetTypedValue()); }
public IProgress StartProgress() { IBeanContextHolder <IProgressDispatcherIntern> childSP = progressDispatcherTL.Value; if (childSP == null) { IBeanContextHolder <IProgressDispatcherIntern> progressDispatcher = BeanContext.CreateService <IProgressDispatcherIntern>(typeof(ProgressDispatcherModule)); progressDispatcherTL.Value = progressDispatcher; } return(((ProgressDispatcher)childSP.GetTypedValue()).StartProgress()); }