Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public override void OnActionExecuting(HttpActionContext actionContext)
        {
            _instrumentationService.TimeRequest(actionContext.Request);

            base.OnActionExecuting(actionContext);
        }