Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            var body = new StringBuilder();

            body.Append(@"<!doctype html><html><head>
<style>
body { font-family: consolas; margin: 0; }
table { width: 100%; }
th { white-space: nowrap; text-align: right; }
caption { color: #fff; background-color: #000; }
</style></head><body>");
            body.Append("<p><a href='status/health'>status/health</a> | <a href='status/management'>status/management</a></p>");
            RequestDumper.AppendHtml(body, context);
            body.Append("</body></html>");

            context.Response.Write(body);
        }
Ejemplo n.º 2
0
        public void ProcessRequest(HttpContext context)
        {
            var area       = string.Join("/", context.Request.Url.Segments.Skip(2).Select(s => _areaNormalizer.Replace(s, "_")));
            var statusCode = 200;

            var body = new StringBuilder();

            body.Append(@"<!doctype html><html><head>
<style>
body { font-family: consolas; margin: 0; }
table { width: 100%; }
th { white-space: nowrap; text-align: right; }
caption { color: #fff; background-color: #000; }
</style></head><body>");
            body.AppendFormat("<h1>{0}</h1>", area);
            RequestDumper.AppendHtml(body, context);
            body.Append("</body></html>");

            context.Response.StatusCode = statusCode;
            context.Response.Write(body);
        }