Variant of the IProgressStatus that saves the output lines to a StringBuilder for programmatic capture Progress reports are not captured.
Inheritance: IProgressStatus
コード例 #1
0
        public void Render(HtmlTextWriter writer)
        {
            if (_isAutomatedTool)
            {
                var console = new StringProgressStatus();
                ProcessInternal(console);

                HttpContext.Current.Response.ContentType = "text/plain";
                HttpContext.Current.Response.Write(Title + "\n\n");
                HttpContext.Current.Response.Write(console.Output);

                if (console.HasErrors)
                {
                    HttpContext.Current.Response.StatusCode = 500;
                    HttpContext.Current.Response.TrySkipIisCustomErrors = true;
                }

                HttpContext.Current.Response.End();
            }
            else
            {
                var console = new CustomStyledHtml5WebConsole(HttpContext.Current.Response);
                console.Title = Title;
                console.Render(ProcessInternal);
            }
        }
コード例 #2
0
 public AdvancedLoadOptions(IncludeEntry preset)
 {
     DeleteOrphans = false;
     Progress = new StringProgressStatus();
     Preset = preset;
 }