11 references to GetElapsedTime
Microsoft.Extensions.Http (11)
DefaultHttpClientFactory.cs (1)
302Log.CleanupCycleEnd(_logger, stopwatch.GetElapsedTime(), disposedCount, _expiredHandlers.Count);
Logging\HttpClientLoggerHandler.cs (6)
42await _httpClientAsyncLogger.LogRequestStopAsync(state, request, response, stopwatch.GetElapsedTime(), cancellationToken).ConfigureAwait(false); 46_httpClientLogger.LogRequestStop(state, request, response, stopwatch.GetElapsedTime()); 54await _httpClientAsyncLogger.LogRequestFailedAsync(state, request, response, exception, stopwatch.GetElapsedTime(), cancellationToken).ConfigureAwait(false); 58_httpClientLogger.LogRequestFailed(state, request, response, exception, stopwatch.GetElapsedTime()); 78_httpClientLogger.LogRequestStop(state, request, response, stopwatch.GetElapsedTime()); 84_httpClientLogger.LogRequestFailed(state, request, response, exception, stopwatch.GetElapsedTime());
Logging\LoggingHttpMessageHandler.cs (2)
72_logger.LogRequestEnd(response, stopwatch.GetElapsedTime(), shouldRedactHeaderValue); 78_logger.LogRequestFailed(stopwatch.GetElapsedTime(), ex);
Logging\LoggingScopeHttpMessageHandler.cs (2)
72_logger.LogRequestPipelineEnd(response, stopwatch.GetElapsedTime(), shouldRedactHeaderValue); 78_logger.LogRequestPipelineFailed(stopwatch.GetElapsedTime(), ex);