using System; using System.Linq; using System.Web; using System.IO; namespace TeamLab.HttpHandlers { public class RevisionHandler : IHttpHandler { public bool IsReusable { get { return false; } } public string result; public void ProcessRequest(HttpContext context) { var DebugString = DebugInfo.DebugString; if (!String.IsNullOrEmpty(DebugString)) { result = DebugString; } else { if (DebugString == null) { result = "DebugString's null"; } else { result = DebugInfo.GetStaticDebugString(); } } if (result == String.Empty) { result = "result's empty"; } context.Response.Write(result); } } }