miniprofiler

Integrate MiniProfiler with .NetCore 3.1

我怕爱的太早我们不能终老 提交于 2020-06-29 03:33:47
问题 I want to integrate MiniProfiler is a WebApi or View /XX/results-index. The WebApi is authenticated with Bearer Tokens. I only want Group Users in Active Directory can see the results, but I don't get it. I have this code in ServicesCollection: services.AddMiniProfiler(options => { options.RouteBasePath = "/profiler"; options.ResultsAuthorizeAsync = async request => await GetAuthorization(request); }).AddEntityFramework(); private static async Task<bool> GetAuthorization(HttpRequest request)

How to exclude a specific service from miniprofiler?

蹲街弑〆低调 提交于 2019-12-11 05:29:55
问题 I am using miniprofiler to assess performance of my MVC6 application. Everything is working fine but I am looking for an option to exclude (mute) a particular service (requests) from my application. For example: My application is polling user authentication every second using some polling service. I don't want to include that in my miniprofiler results. Is there a way to exclude it? Why I want this? I want to exclude this redundant service, so that I can focus on other results which needs