-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Description
- RestSharp needs to integrate with Microsoft's Dependency Injection container to support modern .NET applications using the standard DI patterns
- HTTP client lifecycle management should leverage the built-in
IHttpClientFactoryfor proper resource handling and connection pooling - Test infrastructure should be refactored to support multiple client instantiation patterns while maintaining consistent test coverage
Deliverables
- DI Extension Library: Create
RestSharp.Extensions.DependencyInjectionpackage withServiceCollectionExtensionsprovidingAddRestClient()methods for various configuration scenarios - HTTP Client Factory: Integrate
IHttpClientFactoryfor managedHttpClientcreation and configuration through the DI container - Shared Test Base: Extract common request test cases into
RequestTestsBaseto enable test reuse across different client instantiation patterns - Test Coverage: Implement DI-specific test suite validating RestClient registration and execution through the dependency injection container
Metadata
Metadata
Assignees
Labels
No labels