共用方式為


LoggingScopeHttpMessageHandler Class

Definition

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
LoggingScopeHttpMessageHandler

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.

Applies to