helpcenter/Web/App_Code/RevisionHandler.cs

42 lines
978 B
C#
Raw Normal View History

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)
{
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
{
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);
}
}
}