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); } }
public AdvancedLoadOptions(IncludeEntry preset) { DeleteOrphans = false; Progress = new StringProgressStatus(); Preset = preset; }