Deli z drugimi prek


LoggingHttpMessageHandler Constructors

Definition

Overloads

LoggingHttpMessageHandler(ILogger)

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

LoggingHttpMessageHandler(ILogger, HttpClientFactoryOptions)

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

LoggingHttpMessageHandler(ILogger)

Source:
LoggingHttpMessageHandler.cs
Source:
LoggingHttpMessageHandler.cs

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

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

Parameters

logger
ILogger

The ILogger to log to.

Exceptions

logger is null.

Applies to

LoggingHttpMessageHandler(ILogger, HttpClientFactoryOptions)

Source:
LoggingHttpMessageHandler.cs
Source:
LoggingHttpMessageHandler.cs

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

public:
 LoggingHttpMessageHandler(Microsoft::Extensions::Logging::ILogger ^ logger, Microsoft::Extensions::Http::HttpClientFactoryOptions ^ options);
public LoggingHttpMessageHandler (Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Http.HttpClientFactoryOptions options);
new Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler : Microsoft.Extensions.Logging.ILogger * Microsoft.Extensions.Http.HttpClientFactoryOptions -> Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler
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