mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
性能分析开关
This commit is contained in:
parent
83481f64f4
commit
2b051dff25
|
@ -185,10 +185,11 @@ namespace Blog.Core
|
|||
app.UseAuthentication();
|
||||
// 然后是授权中间件
|
||||
app.UseAuthorization();
|
||||
|
||||
//开启性能分析
|
||||
app.UseMiniProfilerMildd();
|
||||
// 开启异常中间件,要放到最后
|
||||
//app.UseExceptionHandlerMidd();
|
||||
|
||||
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Blog.Core.Extensions
|
|||
/// </summary>
|
||||
public static class MiniProfilerMildd
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(QuartzJobMildd));
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(MiniProfilerMildd));
|
||||
public static void UseMiniProfilerMildd(this IApplicationBuilder app)
|
||||
{
|
||||
if (app == null) throw new ArgumentNullException(nameof(app));
|
||||
|
|
Loading…
Reference in New Issue
Block a user