Del via


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.

Properties

InnerHandler

Gets or sets the inner handler which processes the HTTP response messages.

(Inherited from DelegatingHandler)

Methods

Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler.

(Inherited from HttpMessageHandler)
Dispose(Boolean)

Releases the unmanaged resources used by the DelegatingHandler, and optionally disposes of the managed resources.

(Inherited from DelegatingHandler)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server.

Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server.

(Inherited from DelegatingHandler)
SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to