แชร์ผ่าน


LoggingScopeHttpMessageHandler Constructors

Definition

Overloads

LoggingScopeHttpMessageHandler(ILogger)

Initializes a new instance of the LoggingScopeHttpMessageHandler class with a specified logger.

LoggingScopeHttpMessageHandler(ILogger, HttpClientFactoryOptions)

Initializes a new instance of the LoggingScopeHttpMessageHandler class with a specified logger and options.

LoggingScopeHttpMessageHandler(ILogger)

Source:
LoggingScopeHttpMessageHandler.cs
Source:
LoggingScopeHttpMessageHandler.cs
Source:
LoggingScopeHttpMessageHandler.cs

Initializes a new instance of the LoggingScopeHttpMessageHandler class with a specified logger.

public:
 LoggingScopeHttpMessageHandler(Microsoft::Extensions::Logging::ILogger ^ logger);
public LoggingScopeHttpMessageHandler (Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler : Microsoft.Extensions.Logging.ILogger -> Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler
Public Sub New (logger As ILogger)

Parameters

logger
ILogger

The ILogger to log to.

Exceptions

logger is null.

Applies to

LoggingScopeHttpMessageHandler(ILogger, HttpClientFactoryOptions)

Source:
LoggingScopeHttpMessageHandler.cs
Source:
LoggingScopeHttpMessageHandler.cs
Source:
LoggingScopeHttpMessageHandler.cs

Initializes a new instance of the LoggingScopeHttpMessageHandler class with a specified logger and options.

public:
 LoggingScopeHttpMessageHandler(Microsoft::Extensions::Logging::ILogger ^ logger, Microsoft::Extensions::Http::HttpClientFactoryOptions ^ options);
public LoggingScopeHttpMessageHandler (Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Http.HttpClientFactoryOptions options);
new Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler : Microsoft.Extensions.Logging.ILogger * Microsoft.Extensions.Http.HttpClientFactoryOptions -> Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler
Public Sub New (logger As ILogger, options As HttpClientFactoryOptions)

Parameters

logger
ILogger

The ILogger to log to.

Exceptions

logger or options is null.

Applies to