コード例 #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));
            }
        }