LoggingHttpMessageHandler Constructors
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.
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
- 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
Exceptions
logger
is null
.
Applies to
LoggingHttpMessageHandler(ILogger, HttpClientFactoryOptions)
- Source:
- LoggingHttpMessageHandler.cs
- 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
- options
- HttpClientFactoryOptions
The HttpClientFactoryOptions used to configure the LoggingHttpMessageHandler instance.
Exceptions
logger
or options
is null
.