LoggingScopeHttpMessageHandler Class
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.
Handles logging of the lifecycle for an HTTP request within a log scope.
public ref class LoggingScopeHttpMessageHandler : System::Net::Http::DelegatingHandler
public class LoggingScopeHttpMessageHandler : System.Net.Http.DelegatingHandler
type LoggingScopeHttpMessageHandler = class
inherit DelegatingHandler
Public Class LoggingScopeHttpMessageHandler
Inherits DelegatingHandler
- Inheritance
Constructors
LoggingScopeHttpMessageHandler(ILogger, HttpClientFactoryOptions) |
Initializes a new instance of the LoggingScopeHttpMessageHandler class with a specified logger and options. |
LoggingScopeHttpMessageHandler(ILogger) |
Initializes a new instance of the LoggingScopeHttpMessageHandler class with a specified logger. |
Methods
Send(HttpRequestMessage, CancellationToken) |
Sends an HTTP request to the inner handler to send to the server. |
SendAsync(HttpRequestMessage, CancellationToken) |
Sends an HTTP request to the inner handler to send to the server as an asynchronous operation. |