miniprofiler忽略swagger路径

This commit is contained in:
yubaolee
2021-05-26 01:14:41 +08:00
parent c559f33037
commit c0d47e37bf
2 changed files with 3 additions and 6 deletions

View File

@@ -73,6 +73,7 @@ namespace OpenAuth.WebApi
options.PopupShowTimeWithChildren = true;
options.PopupShowTrivial = true;
options.SqlFormatter = new StackExchange.Profiling.SqlFormatters.InlineFormatter();
// options.IgnoredPaths.Add("/swagger/");
}).AddEntityFramework();//显示SQL语句及耗时
//添加swagger