11 references to GetElapsedTime
Microsoft.Extensions.Http (11)
DefaultHttpClientFactory.cs (1)
302
Log.CleanupCycleEnd(_logger, stopwatch.
GetElapsedTime
(), disposedCount, _expiredHandlers.Count);
Logging\HttpClientLoggerHandler.cs (6)
42
await _httpClientAsyncLogger.LogRequestStopAsync(state, request, response, stopwatch.
GetElapsedTime
(), cancellationToken).ConfigureAwait(false);
46
_httpClientLogger.LogRequestStop(state, request, response, stopwatch.
GetElapsedTime
());
54
await _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);