IHttpClientLogger.LogRequestFailed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Logs the exception happened while sending an HTTP request.
public:
void LogRequestFailed(System::Object ^ context, System::Net::Http::HttpRequestMessage ^ request, System::Net::Http::HttpResponseMessage ^ response, Exception ^ exception, TimeSpan elapsed);
public void LogRequestFailed (object? context, System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpResponseMessage? response, Exception exception, TimeSpan elapsed);
abstract member LogRequestFailed : obj * System.Net.Http.HttpRequestMessage * System.Net.Http.HttpResponseMessage * Exception * TimeSpan -> unit
Public Sub LogRequestFailed (context As Object, request As HttpRequestMessage, response As HttpResponseMessage, exception As Exception, elapsed As TimeSpan)
Parameters
- context
- Object
The context object that was previously returned by LogRequestStart(HttpRequestMessage).
- request
- HttpRequestMessage
The HTTP request message that was sent.
- response
- HttpResponseMessage
If available, the HTTP response message that was received, and null
otherwise.
- exception
- Exception
Exception that happened during processing the HTTP request.
- elapsed
- TimeSpan
Time elapsed since calling LogRequestStart(HttpRequestMessage).
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET