共用方式為


LoggingScopeHttpMessageHandler 建構函式

定義

多載

LoggingScopeHttpMessageHandler(ILogger)

使用指定的記錄器,初始化 LoggingScopeHttpMessageHandler 類別的新實例。

LoggingScopeHttpMessageHandler(ILogger, HttpClientFactoryOptions)

使用指定的記錄器和選項,初始化 LoggingScopeHttpMessageHandler 類別的新實例。

LoggingScopeHttpMessageHandler(ILogger)

來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs

使用指定的記錄器,初始化 LoggingScopeHttpMessageHandler 類別的新實例。

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)

參數

logger
ILogger

要記錄的 ILogger

例外狀況

logger null

適用於

LoggingScopeHttpMessageHandler(ILogger, HttpClientFactoryOptions)

來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs
來源:
LoggingScopeHttpMessageHandler.cs

使用指定的記錄器和選項,初始化 LoggingScopeHttpMessageHandler 類別的新實例。

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)

參數

logger
ILogger

要記錄的 ILogger

例外狀況

loggeroptionsnull

適用於