コード例 #1
0
        protected IProgressDispatcherIntern GetCurrentProgressDispatcher()
        {
            IBeanContextHolder <IProgressDispatcherIntern> childSP = progressDispatcherTL.Value;

            if (childSP == null)
            {
                return(noOpProgressDispatcher);
            }
            return(childSP.GetTypedValue());
        }
コード例 #2
0
        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());
        }