C# 클래스 Tailspin.Surveys.Web.Logging.HttpClientLogHandler

This is a Delegating handlers which intercepts calls made to the WebService. Logs timing information and HttpStatus codes of the remote calls.
상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps 1 사용 예제들

공개 메소드들

메소드 설명
HttpClientLogHandler ( HttpMessageHandler innerHandler, ILogger logger, IHttpContextAccessor contextAccessor ) : System.Net.Http

보호된 메소드들

메소드 설명
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Overrides the SendAsync method of the DelegatingHandler for the purpose of logging REST call success or failure events along with timing information and status codes

메소드 상세

HttpClientLogHandler() 공개 메소드

public HttpClientLogHandler ( HttpMessageHandler innerHandler, ILogger logger, IHttpContextAccessor contextAccessor ) : System.Net.Http
innerHandler System.Net.Http.HttpMessageHandler
logger ILogger
contextAccessor IHttpContextAccessor
리턴 System.Net.Http

SendAsync() 보호된 메소드

Overrides the SendAsync method of the DelegatingHandler for the purpose of logging REST call success or failure events along with timing information and status codes
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
리턴 Task