Files
using.cash/Logic/Support/PirateWebDebug.cs
T
2014-12-05 22:12:51 +01:00

23 lines
645 B
C#

using System.IO;
using System.Web;
namespace Swarmops.Logic.Support
{
public class PirateWebDebug
{
public static string GetDebugInformation()
{
string debug = string.Empty;
debug += "HttpContext is null: " + (HttpContext.Current == null ? "yes" : "no") + "\r\n";
debug += "Current Directory: " + Directory.GetCurrentDirectory();
if (HttpContext.Current != null)
{
debug += "Application Directory: " + HttpContext.Current.Server.MapPath ("~/Test.mdb") + "\r\n";
}
return debug;
}
}
}