-
Notifications
You must be signed in to change notification settings - Fork 5k
Make HttpClientFactory implement IDisposable to clean up resources #115826
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
Draft
Copilot
wants to merge
51
commits into
main
Choose a base branch
from
copilot/fix-113494
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+429
−13
Draft
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
aa38f19
Initial plan for issue
Copilot 7252930
Make HttpClientFactory disposable to clean up resources
Copilot 31b0a30
Add unit test for HttpClientFactory dispose
Copilot dea710c
Fix build error by removing trailing whitespace in DefaultHttpClientF…
Copilot 6cf5b2a
Implement requested changes from PR review
Copilot cd24f01
Remove trailing whitespace in ActiveHandlerTrackingEntry.cs
Copilot eb97f38
Use null-conditional operator in ActiveHandlerTrackingEntry.StopTimer()
Copilot 70c11d0
Fix ExpiredHandlerTrackingEntry.Dispose() method
Copilot 9e16202
Fix assert in ActiveHandlerTrackingEntry.Timer_Tick()
Copilot e2c3344
Fix ActiveHandlerTrackingEntry to not dispose handlers on conversion …
Copilot a67ec9a
Fix trailing whitespace in DefaultHttpClientFactory.cs line 261
Copilot da799e8
Update ActiveHandlerTrackingEntry to use interlocked operations
Copilot 82e8cd6
Replace ObjectDisposedException checks with ThrowIf method
Copilot ac5f1b8
Merge branch 'main' into copilot/fix-113494
CarnaViire 1621aef
Initial plan to fix HttpClientFactory resource cleanup
Copilot 67f2418
Implement improved resource cleanup in HttpClientFactory
Copilot 0ad79a4
Fix restore for lib tests, add build instructions
CarnaViire 71344ed
Implement improved resource cleanup in HttpClientFactory
Copilot 2af2913
Install dependencies
CarnaViire 4835d72
sudo
CarnaViire 2d3b136
Remove NotDisposed constant and simplify state checking in ActiveHand…
Copilot 2c0b22a
Update LifetimeTrackingHttpMessageHandler.Dispose to properly dispose…
Copilot 1249ae2
add more missing pkgs
CarnaViire 0f94471
Fix null reference in StopCleanupTimer and update test to use proper …
Copilot 7ec67fe
Update test to use direct handler tracking to verify disposal
Copilot b4a95e1
Create copilot-instructions.md
CarnaViire 23a6ec3
Fix handler disposal in ActiveHandlerTrackingEntry.Dispose()
Copilot 99a6183
Revert changes to LifetimeTrackingHttpMessageHandler and update Activ…
Copilot 5c9e418
Update HttpClientFactory disposal test and debug logging
Copilot 5b3d51f
Remove debug code and cleanup implementation
Copilot 9ae421a
Instructions wip
CarnaViire aaaf1a1
more instructions
CarnaViire c5f45b1
Fix code review issues from PR
Copilot b37a806
Pre-build clr
CarnaViire ef1d362
Update .github/copilot-instructions.md
CarnaViire 1807675
Use common install-dependencies.sh script in copilot-setup-steps.yml
Copilot 29771cf
Merge branch 'main' into CarnaViire-patch-1
CarnaViire 2f13499
Code review suggestions, unify formatting
CarnaViire 938815b
Merge branch 'CarnaViire-patch-1' into copilot/fix-113494
CarnaViire 3d3f64d
fix
CarnaViire 9c60237
Apply code review suggestions: simplify condition checks and cleanup …
Copilot d8278bc
Add missing testhost instruction
CarnaViire 2f1de62
Fix ExpiredHandlerTrackingEntry.Dispose to not dispose scope when han…
Copilot efa49e1
update yml
CarnaViire b0216e5
Fix HttpClientFactoryDisposeTests to create distinct client handlers
Copilot 65066bd
Merge remote-tracking branch 'upstream/main' into copilot/fix-113494
CarnaViire dcd8cd0
Merge branch 'main' into copilot/fix-113494
CarnaViire c05b5bf
Remove redundant forceDispose property and simplify handler disposal …
Copilot 7a0d56e
Update instructions
CarnaViire 5bffb75
Merge branch 'main' into copilot/fix-113494
CarnaViire 37c0742
Enhance HttpClientFactory dispose tests to verify scope disposal and …
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.