Exemple #1
0
        public async Task InvokeAsync(HttpContext ctx)
        {
            var stopWatch = Stopwatch.StartNew();

            await _next(ctx);

            stopWatch.Stop();

            _metricRecorder.RecordRequest(ctx.Response.StatusCode, stopWatch.ElapsedMilliseconds);
        }
 public async Task <OcspHttpResponse> Respond(OcspHttpRequest httpRequest)
 {
     _recorder.RecordRequest();
     return(await _inner.Respond(httpRequest));
 }