예제 #1
0
        private Task DoAction()
        {
            var     metaData = MetaData;
            ISource source   = Source;

            TkDebug.AssertNotNull(source, $"当前{Style}下,Source为Null,请检查配置是否正确", this);
            using (source as IDisposable)
            {
                InternalWebUtil.PrepareSource(source, this);
                CheckFunctionRight();
                PrepareRecordLog(source);

                OutputData outputData = InternalWebUtil.CreateOutputData(metaData, source, Style, this);

                Log(source, outputData);
                IPageMaker pageMaker = PageMaker;
                return(InternalWebUtil.WritePage(metaData, source, pageMaker, this, outputData));
            }
        }
예제 #2
0
        private Task DoAction()
        {
            var     metaData = MetaData;
            ISource source   = Source;

            TkDebug.AssertNotNull(source, $"当前{Style}下,Source为Null,请检查配置是否正确", this);
            using (source as IDisposable)
            {
                InternalWebUtil.PrepareSource(source, this);
                CheckFunctionRight();
                PrepareRecordLog(source);

                OutputData outputData = InternalWebUtil.CreateOutputData(metaData, source, Style, this);

                Log(source, outputData);

                IRedirector redirector = Redirector;
                InternalWebUtil.RedirectPage(metaData, source, this, outputData, redirector);

                return(Next(Context));
            }
        }