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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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