nancyfx中有一项 诊断功能 ,可以查看网站的基本信息和其他相关信息,还包括查看会话信息,请求输出信息等.

假设你已经安装完了nancyfx.现在开始使用诊断功能:

一 安装 

在你的Bootstrapper中加入相关的设置 

protected override DiagnosticsConfiguration DiagnosticsConfiguration
{
get { return new DiagnosticsConfiguration { Password = @"wang2650" }; }
}
//wang2650是要查看此功能面板的密码

protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
{
StaticConfiguration.EnableRequestTracing = true;//是否启用请求跟踪
}

二  查看  

输入地址 http://localhost:3382/_Nancy/   输入密码

nancy中的诊断功能面板1

 

nancy中的诊断功能面板1

nancy中的诊断功能面板1

三 设置查看内容   点击settings 如下  勾选你要查看的选项

nancy中的诊断功能面板1

这个会mvc的一般都知道什么意思,我这水平就不解释了.

四  网站基本信息  点击 infomation 第一个那图标

主要是项目的基本信息居多

nancy中的诊断功能面板1

 

相关文章:

  • 2021-11-11
  • 2021-11-02
  • 2021-07-24
  • 2022-12-23
  • 2021-09-09
  • 2021-10-25
猜你喜欢
  • 2021-06-29
  • 2022-01-07
  • 2021-12-04
  • 2022-12-23
  • 2021-10-17
  • 2021-04-25
相关资源
相似解决方案