LoggingScopeHttpMessageHandler 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
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)
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
Exceptions
logger
is null
.
Applies to
LoggingScopeHttpMessageHandler(ILogger, HttpClientFactoryOptions)
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
- options
- HttpClientFactoryOptions
The HttpClientFactoryOptions used to configure the LoggingScopeHttpMessageHandler instance.
Exceptions
logger
or options
is null
.
Applies to
.NET