HttpClientLoggingHttpClientBuilderExtensions.AddExtendedHttpClientLogging Methode

Definitie

Overloads

Name Description
AddExtendedHttpClientLogging(IHttpClientBuilder)

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

AddExtendedHttpClientLogging(IHttpClientBuilder, IConfigurationSection)

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

AddExtendedHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>)

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

AddExtendedHttpClientLogging(IHttpClientBuilder, Boolean)

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

AddExtendedHttpClientLogging(IHttpClientBuilder, IConfigurationSection, Boolean)

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

AddExtendedHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>, Boolean)

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

AddExtendedHttpClientLogging(IHttpClientBuilder)

Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs
Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder);
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder) As IHttpClientBuilder

Parameters

Retouren

De waarde van builder.

Uitzonderingen

Argument builder is null.

Opmerkingen

Alle andere loggers worden verwijderd , inclusief de standaardregistratie, geregistreerd via AddDefaultLogger(IHttpClientBuilder). Informatie die door deze methode wordt geregistreerd, wordt toegevoegd als sleutel-waardeparen om de logboekstatus te registreren.

Van toepassing op

AddExtendedHttpClientLogging(IHttpClientBuilder, IConfigurationSection)

Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs
Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, section As IConfigurationSection) As IHttpClientBuilder

Parameters

section
IConfigurationSection

De IConfigurationSection te gebruiken voor het LoggingOptionsconfigureren.

Retouren

De waarde van builder.

Uitzonderingen

Een van de argumenten is null.

Opmerkingen

Alle andere loggers worden verwijderd , inclusief de standaardregistratie, geregistreerd via AddDefaultLogger(IHttpClientBuilder). Informatie die door deze methode wordt geregistreerd, wordt toegevoegd als sleutel-waardeparen om de logboekstatus te registreren.

Van toepassing op

AddExtendedHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>)

Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs
Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<Microsoft::Extensions::Http::Logging::LoggingOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<Microsoft.Extensions.Http.Logging.LoggingOptions> configure);
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<Microsoft.Extensions.Http.Logging.LoggingOptions> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, configure As Action(Of LoggingOptions)) As IHttpClientBuilder

Parameters

configure
Action<LoggingOptions>

De gemachtigde waarmee moet worden geconfigureerd LoggingOptions .

Retouren

De waarde van builder.

Uitzonderingen

Een van de argumenten is null.

Opmerkingen

Alle andere loggers worden verwijderd , inclusief de standaardregistratie, geregistreerd via AddDefaultLogger(IHttpClientBuilder). Informatie die door deze methode wordt geregistreerd, wordt toegevoegd als sleutel-waardeparen om de logboekstatus te registreren.

Van toepassing op

AddExtendedHttpClientLogging(IHttpClientBuilder, Boolean)

Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, bool wrapHandlersPipeline);
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, bool wrapHandlersPipeline);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, bool wrapHandlersPipeline);
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * bool -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * bool -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, wrapHandlersPipeline As Boolean) As IHttpClientBuilder

Parameters

wrapHandlersPipeline
Boolean

Wanneer true, de logger wordt geplaatst aan het begin van de aanvraagpijplijn, verpakken alle andere handlers. Wanneer false, de logger wordt geplaatst aan het einde van de pijplijn, vlak voor de primaire berichthandler.

Retouren

De waarde van builder.

Kenmerken

Uitzonderingen

Argument builder is null.

Opmerkingen

Alle andere loggers worden verwijderd , inclusief de standaardregistratie, geregistreerd via AddDefaultLogger(IHttpClientBuilder). Informatie die door deze methode wordt geregistreerd, wordt toegevoegd als sleutel-waardeparen om de logboekstatus te registreren.

Van toepassing op

AddExtendedHttpClientLogging(IHttpClientBuilder, IConfigurationSection, Boolean)

Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section, bool wrapHandlersPipeline);
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section, bool wrapHandlersPipeline);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section, bool wrapHandlersPipeline);
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Microsoft.Extensions.Configuration.IConfigurationSection * bool -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Microsoft.Extensions.Configuration.IConfigurationSection * bool -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, section As IConfigurationSection, wrapHandlersPipeline As Boolean) As IHttpClientBuilder

Parameters

section
IConfigurationSection

De IConfigurationSection te gebruiken voor het LoggingOptionsconfigureren.

wrapHandlersPipeline
Boolean

Wanneer true, de logger wordt geplaatst aan het begin van de aanvraagpijplijn, verpakken alle andere handlers. Wanneer false, de logger wordt geplaatst aan het einde van de pijplijn, vlak voor de primaire berichthandler.

Retouren

De waarde van builder.

Kenmerken

Uitzonderingen

Een van de argumenten is null.

Opmerkingen

Alle andere loggers worden verwijderd , inclusief de standaardregistratie, geregistreerd via AddDefaultLogger(IHttpClientBuilder). Informatie die door deze methode wordt geregistreerd, wordt toegevoegd als sleutel-waardeparen om de logboekstatus te registreren.

Van toepassing op

AddExtendedHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>, Boolean)

Bron:
HttpClientLoggingHttpClientBuilderExtensions.cs

Voegt een IHttpClientAsyncLogger toe om logboeken te verzenden voor uitgaande aanvragen voor een benoemde HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<Microsoft::Extensions::Http::Logging::LoggingOptions ^> ^ configure, bool wrapHandlersPipeline);
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<Microsoft.Extensions.Http.Logging.LoggingOptions> configure, bool wrapHandlersPipeline);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<Microsoft.Extensions.Http.Logging.LoggingOptions> configure, bool wrapHandlersPipeline);
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<Microsoft.Extensions.Http.Logging.LoggingOptions> * bool -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<Microsoft.Extensions.Http.Logging.LoggingOptions> * bool -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, configure As Action(Of LoggingOptions), wrapHandlersPipeline As Boolean) As IHttpClientBuilder

Parameters

configure
Action<LoggingOptions>

De gemachtigde waarmee moet worden geconfigureerd LoggingOptions .

wrapHandlersPipeline
Boolean

Wanneer true, de logger wordt geplaatst aan het begin van de aanvraagpijplijn, verpakken alle andere handlers. Wanneer false, de logger wordt geplaatst aan het einde van de pijplijn, vlak voor de primaire berichthandler.

Retouren

De waarde van builder.

Kenmerken

Uitzonderingen

Een van de argumenten is null.

Opmerkingen

Alle andere loggers worden verwijderd , inclusief de standaardregistratie, geregistreerd via AddDefaultLogger(IHttpClientBuilder). Informatie die door deze methode wordt geregistreerd, wordt toegevoegd als sleutel-waardeparen om de logboekstatus te registreren.

Van toepassing op