Я использую Miniprofiler в приложении asp. net core2.0. Startup.cs
services.AddMiniProfiler(options => {
options.RouteBasePath = "/profiler";
(options.Storage as MemoryCacheStorage).CacheDuration = TimeSpan.FromMinutes(60);
options.SqlFormatter = new StackExchange.Profiling.SqlFormatters.InlineFormatter();
options.ResultsAuthorize = request => !Program.DisableProfilingResults;
});
Для каждого соединения я делаю:
DbConnection connection = new System.Data.SqlClient.SqlConnection(_connectionString);
return new StackExchange.Profiling.Data.ProfiledDbConnection(connection, MiniProfiler.Current);
Примеры взяты отсюда https://miniprofiler.com/dotnet/HowTo/ProfileSql. При выводе информации я вижу загрузку содержимого stati c (js, css, et c.), Включая запросы к базе данных, как я могу отключить это?