What problem does it solve?
This Skill addresses the common challenges of consuming HTTP APIs in .NET applications, preventing issues like socket exhaustion and DNS staleness, and providing robust error handling.
Core Features & Use Cases
- Efficient HTTP Client Management: Utilizes
IHttpClientFactory for proper lifecycle management and connection pooling.
- Named and Typed Clients: Supports both approaches for consuming different APIs with specific configurations or encapsulating API logic.
- Resilience Integration: Seamlessly integrates with resilience patterns like retries, timeouts, and circuit breakers.
- Delegating Handlers: Enables custom processing pipelines for concerns like authentication, logging, and correlation ID propagation.
- Use Case: Automatically configure and use
IHttpClientFactory to consume a third-party REST API, ensuring requests are resilient and properly authenticated using a DelegatingHandler.
Quick Start
Configure a typed HTTP client for consuming the 'catalog-api' service with resilience.