#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace ASP
{
using System;
#line 2 "..\..\Areas\Admin\Views\Index\Main.cshtml"
using System.Collections;
#line default
#line hidden
using System.Collections.Generic;
#line 1 "..\..\Areas\Admin\Views\Index\Main.cshtml"
using System.Diagnostics;
#line default
#line hidden
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using NewLife;
#line 3 "..\..\Areas\Admin\Views\Index\Main.cshtml"
using NewLife.Common;
#line default
#line hidden
using NewLife.Cube;
using NewLife.Reflection;
using NewLife.Web;
using XCode;
using XCode.Membership;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Admin/Views/Index/Main.cshtml")]
public partial class _Areas_Admin_Views_Index_Main_cshtml : System.Web.Mvc.WebViewPage<dynamic>
{
public _Areas_Admin_Views_Index_Main_cshtml()
{
}
public override void Execute()
{
#line 4 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Layout = NewLife.Cube.Setting.Current.Layout;
ViewBag.Title = "服务器信息";
var Act = ViewBag.Act;
#line default
#line hidden
WriteLiteral("\r\n");
#line 10 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (String.IsNullOrEmpty(Act))
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n <th");
WriteLiteral(" colspan=\"4\"");
WriteLiteral(">\r\n 服务器信息\r\n </th>\r\n </tr>\r\n <" +
"/thead>\r\n <tbody>\r\n <tr>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 应用系统:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 26 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(HttpRuntime.AppDomainAppVirtualPath);
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 694), Tuple.Create("\"", 728)
#line 26 "..\..\Areas\Admin\Views\Index\Main.cshtml"
, Tuple.Create(Tuple.Create("", 701), Tuple.Create<System.Object, System.Int32>(Url.Action("Main/Restart")
#line default
#line hidden
, 701), false)
);
WriteLiteral(" onclick=\"return confirm(\'仅重启ASP.Net应用程序域,而不是操作系统!\\n确认重启?\')\"");
WriteLiteral(">重启应用系统</a>\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 目录:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 32 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(HttpRuntime.AppDomainAppPath);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td" +
"");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 域名地址:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 40 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Request.ServerVariables["SERVER_NAME"]);
#line default
#line hidden
WriteLiteral(",\r\n");
WriteLiteral(" ");
#line 41 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Request.ServerVariables["LOCAl_ADDR"]);
#line default
#line hidden
WriteLiteral(":");
#line 41 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Request.ServerVariables["Server_Port"]);
#line default
#line hidden
WriteLiteral("\r\n [");
#line 42 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Request.ServerVariables["REMOTE_HOST"]);
#line default
#line hidden
WriteLiteral("]\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 1429), Tuple.Create("\"", 1465)
#line 43 "..\..\Areas\Admin\Views\Index\Main.cshtml"
, Tuple.Create(Tuple.Create("", 1436), Tuple.Create<System.Object, System.Int32>(Url.Action("Main/ServerVar")
#line default
#line hidden
, 1436), false)
);
WriteLiteral(" target=\"_blank\"");
WriteLiteral(" title=\"点击打开服务器变量列表\"");
WriteLiteral(">服务器变量列表</a>\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 计算机用户:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 49 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Environment.UserName);
#line default
#line hidden
WriteLiteral("/");
#line 49 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Environment.MachineName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td" +
"");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 应用程序域:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 57 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(AppDomain.CurrentDomain.FriendlyName);
#line default
#line hidden
WriteLiteral("\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 1992), Tuple.Create("\"", 2027)
#line 58 "..\..\Areas\Admin\Views\Index\Main.cshtml"
, Tuple.Create(Tuple.Create("", 1999), Tuple.Create<System.Object, System.Int32>(Url.Action("Main/Assembly")
#line default
#line hidden
, 1999), false)
);
WriteLiteral(" target=\"_blank\"");
WriteLiteral(" title=\"点击打开进程程序集列表\"");
WriteLiteral(">程序集列表</a>\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n .Net 版本:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 64 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Environment.Version);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td" +
"");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 操作系统:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 72 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Runtime.OSName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n Web服务器:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 78 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(ViewBag.WebServerName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td" +
"");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 处理器:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 86 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Environment.ProcessorCount);
#line default
#line hidden
WriteLiteral("\r\n 核心\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 时间:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(" title=\"这里使用了服务器默认的时间格式!后面是开机时间。\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 93 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(DateTime.Now);
#line default
#line hidden
WriteLiteral(",开机");
#line 93 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(new TimeSpan(0, 0, 0, 0, Environment.TickCount));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n");
#line 97 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 97 "..\..\Areas\Admin\Views\Index\Main.cshtml"
var process = Process.GetCurrentProcess();
#line default
#line hidden
WriteLiteral("\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 内存:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n 物理内存:");
#line 102 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Runtime.AvailableMemory.ToString("n0"));
#line default
#line hidden
WriteLiteral("M / ");
#line 102 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Runtime.PhysicalMemory.ToString("n0"));
#line default
#line hidden
WriteLiteral("M\r\n 工作集: ");
#line 103 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write((process.WorkingSet64 / 1024 / 1024).ToString("n0"));
#line default
#line hidden
WriteLiteral("M\r\n 提交: ");
#line 104 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write((process.PrivateMemorySize64 / 1024 / 1024).ToString("n0"));
#line default
#line hidden
WriteLiteral("M\r\n GC: ");
#line 105 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write((GC.GetTotalMemory(false) / 1024 / 1024).ToString("n0"));
#line default
#line hidden
WriteLiteral("M\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3822), Tuple.Create("\"", 3863)
#line 106 "..\..\Areas\Admin\Views\Index\Main.cshtml"
, Tuple.Create(Tuple.Create("", 3829), Tuple.Create<System.Object, System.Int32>(Url.Action("Main/ProcessModules")
#line default
#line hidden
, 3829), false)
);
WriteLiteral(" target=\"_blank\"");
WriteLiteral(" title=\"点击打开进程模块列表\"");
WriteLiteral(">模块列表</a>\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n 进程时间:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 112 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(process.TotalProcessorTime.TotalSeconds.ToString("N2"));
#line default
#line hidden
WriteLiteral("秒 启动于 ");
#line 112 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(process.StartTime.ToFullString());
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td" +
"");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n Session:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 120 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Session.Contents.Count);
#line default
#line hidden
WriteLiteral(" 个,");
#line 120 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Session.Timeout);
#line default
#line hidden
WriteLiteral(" 分钟,SessionID:");
#line 120 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Session.Contents.SessionID);
#line default
#line hidden
WriteLiteral("\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4481), Tuple.Create("\"", 4515)
#line 121 "..\..\Areas\Admin\Views\Index\Main.cshtml"
, Tuple.Create(Tuple.Create("", 4488), Tuple.Create<System.Object, System.Int32>(Url.Action("Main/Session")
#line default
#line hidden
, 4488), false)
);
WriteLiteral(" target=\"_blank\"");
WriteLiteral(" title=\"点击打开Session列表\"");
WriteLiteral(">Session列表</a>\r\n </td>\r\n <td");
WriteLiteral(" class=\"name\"");
WriteLiteral(">\r\n Cache:\r\n </td>\r\n <td");
WriteLiteral(" class=\"value\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 127 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Cache.Count);
#line default
#line hidden
WriteLiteral(" 个,可用:");
#line 127 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write((Cache.EffectivePrivateBytesLimit / 1024).ToString("n0"));
#line default
#line hidden
WriteLiteral("KB\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4838), Tuple.Create("\"", 4870)
#line 128 "..\..\Areas\Admin\Views\Index\Main.cshtml"
, Tuple.Create(Tuple.Create("", 4845), Tuple.Create<System.Object, System.Int32>(Url.Action("Main/Cache")
#line default
#line hidden
, 4845), false)
);
WriteLiteral(" target=\"_blank\"");
WriteLiteral(" title=\"点击打开Cache列表\"");
WriteLiteral(">Cache列表</a>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </t" +
"able>\r\n");
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n <th>名称</th>\r\n " +
" <th>标题</th>\r\n <th>文件版本</th>\r\n <th>内部版本</th>\r\n " +
" <th>编译时间</th>\r\n </tr>\r\n </thead>\r\n <tbody>" +
"\r\n");
#line 144 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 144 "..\..\Areas\Admin\Views\Index\Main.cshtml"
foreach (AssemblyX item in ViewBag.MyAsms)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>");
#line 147 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Name);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 148 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Title);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 149 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileVersion);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 150 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Version);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 151 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Compile.ToFullString());
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n");
#line 153 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(" </tbody>\r\n </table>\r\n");
#line 156 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
#line 157 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (Act == "ProcessModules")
{
var isAll = String.Equals("All", Request["Mode"], StringComparison.OrdinalIgnoreCase);
var process = Process.GetCurrentProcess();
var list = new List<ProcessModule>();
foreach (ProcessModule item in process.Modules)
{
if (isAll || item.FileVersionInfo.CompanyName != "Microsoft Corporation") { list.Add(item); }
}
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" colspan=\"7\"");
WriteLiteral(">\r\n 进程模块(");
#line 171 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(process.ProcessName);
#line default
#line hidden
WriteLiteral(" , PID=");
#line 171 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(process.Id);
#line default
#line hidden
WriteLiteral(" )\r\n");
#line 172 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 172 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (!isAll)
{
#line default
#line hidden
WriteLiteral(" ");
WriteLiteral("(<a");
WriteLiteral(" href=\"?Mode=All\"");
WriteLiteral(">完整</a>,仅用户):");
WriteLiteral("\r\n");
#line 175 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" ");
WriteLiteral("(完整,<a");
WriteLiteral(" href=\"?Mode=OnlyUser\"");
WriteLiteral(">仅用户</a>):");
WriteLiteral("\r\n");
#line 179 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(@" </th>
</tr>
<tr>
<th>
模块名称
</th>
<th>
公司名称
</th>
<th>
产品名称
</th>
<th>
描述
</th>
<th>
版本
</th>
<th>
大小
</th>
<th>
路径
</th>
</tr>
");
#line 205 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 205 "..\..\Areas\Admin\Views\Index\Main.cshtml"
foreach (ProcessModule item in list)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>\r\n");
WriteLiteral(" ");
#line 209 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.ModuleName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 212 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileVersionInfo.CompanyName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 215 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileVersionInfo.ProductName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 218 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileVersionInfo.FileDescription);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 221 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileVersionInfo.FileVersion);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 224 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.ModuleMemorySize);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 227 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileName);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 230 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n");
#line 232 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
#line 233 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (Act == "Assembly")
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" colspan=\"6\"");
WriteLiteral(">\r\n 程序集列表(");
#line 238 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(AppDomain.CurrentDomain.FriendlyName);
#line default
#line hidden
WriteLiteral(" )\r\n </th>\r\n </tr>\r\n <tr>\r\n <th>名称</th>\r\n " +
" <th>标题</th>\r\n <th>文件版本</th>\r\n <th>内部版本</th>\r\n " +
" <th>编译时间</th>\r\n <th>路径</th>\r\n </tr>\r\n");
#line 249 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 249 "..\..\Areas\Admin\Views\Index\Main.cshtml"
foreach (AssemblyX item in ViewBag.Asms)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>\r\n");
WriteLiteral(" ");
#line 253 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Name);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 256 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Title);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>\r\n");
WriteLiteral(" ");
#line 259 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.FileVersion);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n <td>");
#line 261 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Version);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 262 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Compile.ToFullString());
#line default
#line hidden
WriteLiteral("</td>\r\n <td>\r\n");
#line 264 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 264 "..\..\Areas\Admin\Views\Index\Main.cshtml"
var location = String.Empty;
try
{
location = item.Asm.Location;
}
catch { }
#line default
#line hidden
WriteLiteral("\r\n");
WriteLiteral(" ");
#line 272 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(location);
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
#line 275 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n");
#line 277 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
#line 278 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (Act == "Session")
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" colspan=\"6\"");
WriteLiteral(">\r\n Session列表(");
#line 283 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Session.Contents.Count);
#line default
#line hidden
WriteLiteral(" )\r\n </th>\r\n </tr>\r\n <tr>\r\n <th>名称</th>\r\n " +
" <th>类型</th>\r\n <th>数值</th>\r\n </tr>\r\n");
#line 291 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 291 "..\..\Areas\Admin\Views\Index\Main.cshtml"
foreach (String item in Session.Keys)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>");
#line 294 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 295 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Session[item].GetType().FullName);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 296 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Session[item]);
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n");
#line 298 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n");
#line 300 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
#line 301 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (Act == "Cache")
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" colspan=\"6\"");
WriteLiteral(">\r\n Cache列表(");
#line 306 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Cache.Count);
#line default
#line hidden
WriteLiteral(" )\r\n </th>\r\n </tr>\r\n <tr>\r\n <th>名称</th>\r\n " +
" <th>类型</th>\r\n <th>数值</th>\r\n </tr>\r\n");
#line 314 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 314 "..\..\Areas\Admin\Views\Index\Main.cshtml"
foreach (DictionaryEntry item in Cache)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>");
#line 317 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Key);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 318 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Value.GetType().FullName);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 319 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(item.Value);
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n");
#line 321 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n");
#line 323 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
#line 324 "..\..\Areas\Admin\Views\Index\Main.cshtml"
if (Act == "ServerVar")
{
#line default
#line hidden
WriteLiteral(" <table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <tr>\r\n <th");
WriteLiteral(" colspan=\"6\"");
WriteLiteral(">\r\n 服务器变量列表\r\n </th>\r\n </tr>\r\n <tr>\r\n " +
" <th>名称</th>\r\n <th>数值</th>\r\n </tr>\r\n");
#line 336 "..\..\Areas\Admin\Views\Index\Main.cshtml"
#line default
#line hidden
#line 336 "..\..\Areas\Admin\Views\Index\Main.cshtml"
foreach (var key in Request.ServerVariables.AllKeys)
{
var v = Request.ServerVariables[key];
v = v.Replace("\r\n", "</br>");
if (key.EqualIgnoreCase("HTTP_COOKIE")) { v = v.Replace(";", "</br>"); }
#line default
#line hidden
WriteLiteral(" <tr>\r\n <td>");
#line 342 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(key);
#line default
#line hidden
WriteLiteral("</td>\r\n <td>");
#line 343 "..\..\Areas\Admin\Views\Index\Main.cshtml"
Write(Html.Raw(v));
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n");
#line 345 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
WriteLiteral(" </table>\r\n");
#line 347 "..\..\Areas\Admin\Views\Index\Main.cshtml"
}
#line default
#line hidden
}
}
}
#pragma warning restore 1591
|