protected override async Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) { _instrumentationService.TimeRequest(request); var response = await base.SendAsync(request, cancellationToken); _instrumentationService.InstrumentResponse(response); return(response); }
public override void OnException(HttpActionExecutedContext context) { _instrumentationService.InstrumentResponse(context); base.OnException(context); }
public override Task OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken) { _instrumentationService.InstrumentResponse(actionExecutedContext); return(base.OnActionExecutedAsync(actionExecutedContext, cancellationToken)); }