public async Task <IActionResult> SlowestEndpointAsync([FromServices] IEasyProfilerBaseService <ProfilerPostgreSqlDbContext> baseService)
 {
     return(Ok(await baseService.GetSlowestEndpointsAsync()));
 }
Exemplo n.º 2
0
 public EasyProfilerInterceptors(IEasyProfilerBaseService <ProfilerDbContext> baseService, IHttpContextAccessor httpContextAccessor)
 {
     this.baseService         = baseService;
     this.httpContextAccessor = httpContextAccessor;
 }
 public async Task <IActionResult> AdvancedFilterForEasyProfilerAsync([FromQuery] AdvancedFilterModel model, [FromServices] IEasyProfilerBaseService <ProfilerPostgreSqlDbContext> baseService)
 {
     return(Ok(await baseService.AdvancedFilterAsync(model)));
 }