2021-06-04 12:57:43 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace TeamLab.HttpHandlers
|
|
|
|
|
{
|
|
|
|
|
public class RevisionHandler : IHttpHandler
|
|
|
|
|
{
|
|
|
|
|
public bool IsReusable
|
|
|
|
|
{
|
|
|
|
|
get { return false; }
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-18 11:22:13 +00:00
|
|
|
|
public string result;
|
|
|
|
|
|
2021-06-04 12:57:43 +00:00
|
|
|
|
public void ProcessRequest(HttpContext context)
|
|
|
|
|
{
|
2021-06-18 07:59:05 +00:00
|
|
|
|
var DebugString = DebugInfo.DebugString;
|
|
|
|
|
if (!String.IsNullOrEmpty(DebugString))
|
2021-06-17 16:20:34 +00:00
|
|
|
|
{
|
|
|
|
|
result = DebugString;
|
|
|
|
|
}
|
2021-06-18 11:22:13 +00:00
|
|
|
|
else
|
|
|
|
|
{
|
2021-06-18 07:59:05 +00:00
|
|
|
|
if (DebugString == null)
|
|
|
|
|
{
|
|
|
|
|
result = "DebugString's null";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
result = DebugInfo.GetStaticDebugString();
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-18 11:22:13 +00:00
|
|
|
|
if (result == String.Empty)
|
|
|
|
|
{
|
|
|
|
|
result = "result's empty";
|
|
|
|
|
}
|
2021-06-04 12:57:43 +00:00
|
|
|
|
context.Response.Write(result);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|