-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add Process.ReadAllTextAsync and ReadAllBytesAsync #126942
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
6946997
Add Process.ReadAllText and ReadAllBytes with platform-specific multi…
Copilot c2dceaf
Fix fileOffset values and refactor to unified ReadPipes (WIP - nullab…
Copilot d518461
Rewrite Windows ReadPipes to use overlapped IO with wait handles inst…
Copilot 4eb1e88
Fix code review: make RentLargerBuffer private, fix fully-qualified W…
Copilot 0986690
Address review feedback: require both stdout/stderr redirected, add h…
Copilot df0e65a
Address round 2 feedback: extract ValidateReadAllState helper, make W…
Copilot 5d6e9c0
address my own feedback:
adamsitnik 99ef166
Apply suggestions from code review
adamsitnik 70df3b1
fix the build
adamsitnik 474a484
Fix test missing else, use ToTimeoutMilliseconds for validation, fix …
Copilot 9775b5d
Require StreamReadMode.Undefined for ReadAll*, rename test, add sync …
Copilot 1d30ed2
Address feedback: Win32Exception fix, ref assembly order, AllocateOve…
Copilot 77dceb0
Add using to Process in ReadAllBytes_ReadsBinaryDataWithNullBytes test
Copilot 9896de0
Fix RentLargerBuffer infinite loop at Array.MaxLength, use Assert.Equ…
Copilot c3bd6bc
address my own feedback
adamsitnik ce6b594
Merge branch 'main' into copilot/implement-readalltext-and-readallbytes
adamsitnik e8cbe82
Address jkotas and tmds feedback: PinnedGCHandle, RentLargerBuffer im…
Copilot 6ecc0b9
Flip WaitHandle order to prioritize stderr, add Raymond Chen blog links
Copilot 8f7c3c8
Remove Raymond Chen blog links from CancelPendingIOIfNeeded — keep on…
Copilot c92f673
Use non-blocking IO on Unix: DangerousSetIsNonBlocking + Interop.Sys.…
Copilot cdd3da9
Add ReadAllTextAsync and ReadAllBytesAsync to Process
Copilot 057bb80
Simplify WhenAny multiplexing to avoid redundant await
Copilot d5b93cc
Add ReadAllTextAsync and ReadAllBytesAsync to Process
Copilot 06bb8da
Merge remote-tracking branch 'origin/copilot/add-readalltextbytes-asy…
Copilot 24b0960
Fix double-return-to-pool bug: ReadPipesToBuffersAsync takes buffer o…
Copilot 36d802c
Improve comment clarity in ReadPipesToBuffersAsync catch block
Copilot 28d0ee9
Revert "Improve comment clarity in ReadPipesToBuffersAsync catch block"
adamsitnik 4f2873b
Revert "Fix double-return-to-pool bug: ReadPipesToBuffersAsync takes …
adamsitnik 3223fa1
address feedback:
adamsitnik 8875214
Merge branch 'main' into copilot/add-readalltextbytes-async-methods
adamsitnik 86e745a
Replace WhenAny multiplexing with parallel per-stream ReadPipeToBuffe…
Copilot 442fb0f
return the pooled array even when one has failed and other succeeded
adamsitnik c0c1d8b
address code review feedback
adamsitnik 378715b
fix typos/grammar
adamsitnik 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
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.