RA.Utilities.Integrations
· One min read
Version 10.0.0-rc.2
This is the initial preview release of the RA.Utilities.Integrations package. It provides a standardized and resilient way to manage HTTP client integrations in .NET applications.
✨ New Features
- Initial Release: Introduction of a comprehensive toolkit for external API integrations.
- Typed HttpClient Registration:
AddHttpClientIntegration: A powerful extension method to register typedHttpClients, bind them toappsettings.jsonconfiguration, and apply resilience policies.
- Resilience with Polly:
- Includes a default transient fault-handling policy (retry with exponential backoff) out of the box.
- Allows for custom Polly policies to be injected for advanced scenarios like Circuit Breakers.
- Common Delegating Handlers:
RequestResponseLoggingHandler: For detailed logging of outgoing requests and incoming responses.InternalHeadersForwardHandler: To propagateAuthorizationandx-request-idheaders in service-to-service communication.ApiKeyAuthenticationHandler: For easily adding API key authentication to requests.
- Base HTTP Client:
BaseHttpClient: A reusable base class that simplifies common HTTP operations like GET, POST, and PUT, including serialization and deserialization.