-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add support for MS DI and client factory #2318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying restsharp with
|
| Latest commit: |
e6e7a0c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e3894a39.restsharp.pages.dev |
| Branch Preview URL: | https://depencency-injection.restsharp.pages.dev |
PR Compliance Guide 🔍(Compliance updated until commit 4227f68)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 4dc910d
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to e6e7a0c
Previous suggestions✅ Suggestions up to commit 4dc910d
|
|||||||||||||||||||||||||
Test Results 42 files 42 suites 18m 20s ⏱️ Results for commit e6e7a0c. ♻️ This comment has been updated with latest results. |
* Add net48 to the new project
User description
Description
Auto-created Ticket
#2319
PR Type
Enhancement
Description
Add Microsoft Dependency Injection container support via
ServiceCollectionExtensionsIntegrate HTTP client factory for managed
HttpClientlifecycleExtract shared request tests into reusable
RequestTestsBaseclassReorganize test infrastructure and update namespace structure
Diagram Walkthrough
File Walkthrough
2 files
Microsoft DI extension methods for RestClient registrationExpose HTTP configuration methods as internal8 files
Grant internal visibility to DependencyInjection assemblyUpdate namespace and make models publicMigrate to shared namespace and add TestRequest modelUpdate using directives to reference shared namespaceCreate new DI extension library project fileCreate new DI tests project fileSimplify compile dependencies using wildcard patternsRegister new DI and DI test projects in solution3 files
Extract common request test cases into base classImplement DI-based request tests using shared baseRefactor to inherit from RequestTestsBase3 files
Remove redundant using statement for Server namespaceRemove redundant using statement for Server namespaceAdd blank line for formatting consistency1 files
Remove trailing TestRequest record definition1 files
Add Microsoft.Extensions.Http package dependency