HttpClientLoggingServiceCollectionExtensions Klass
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Tillägg för att registrera utökade HTTP-klientloggningsfunktioner.
public ref class HttpClientLoggingServiceCollectionExtensions abstract sealed
public static class HttpClientLoggingServiceCollectionExtensions
type HttpClientLoggingServiceCollectionExtensions = class
Public Module HttpClientLoggingServiceCollectionExtensions
- Arv
-
HttpClientLoggingServiceCollectionExtensions
Metoder
| Name | Description |
|---|---|
| AddExtendedHttpClientLogging(IServiceCollection, Action<LoggingOptions>) |
Lägger till en IHttpClientAsyncLogger för att generera loggar för utgående begäranden för alla HTTP-klienter som skapats med IHttpClientFactory. |
| AddExtendedHttpClientLogging(IServiceCollection, IConfigurationSection) |
Lägger till en IHttpClientAsyncLogger för att generera loggar för utgående begäranden för alla HTTP-klienter som skapats med IHttpClientFactory. |
| AddExtendedHttpClientLogging(IServiceCollection) |
Lägger till en IHttpClientAsyncLogger för att generera loggar för utgående begäranden för alla HTTP-klienter som skapats med IHttpClientFactory. |
| AddHttpClientLogEnricher<T>(IServiceCollection) |
Lägger till en berikande instans av |