-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup
#15177
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
adityapatwardhan
merged 36 commits into
PowerShell:master
from
daxian-dbw:PSCmdlet-Dispose-mine
Oct 11, 2021
Merged
Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup
#15177
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
aabc7f8
:sparkles: Add cleanup block
vexx32 ed43b50
:recycle: Refactor & address code review
vexx32 b9cbf8b
:recycle: Refactor pipeline handling a bit
vexx32 dbc2b6c
:art: Linter fixes
vexx32 480eb01
:recycle: Refactor dispose in CommandProcessorBase
vexx32 e86422b
:wrench: Adjust scope and error handling
vexx32 506b3b2
:recycle: Avoid double type check for cleanup
vexx32 cb9491a
:recycle: Address Rob's feedback
vexx32 0d76834
:recycle: Move duplicated scope handling to method
vexx32 15b5485
:recycle: Refactor critical section logic
vexx32 47fd6d2
:recycle: Address Dongbo's review comments
vexx32 5e9f75f
Refactor the design of 'Clean' block implementation
daxian-dbw 9704c7d
Revert a few unneeded changes
daxian-dbw 376033a
Fix build and avoid using 'CriticalSection' code for now
daxian-dbw d9eac3b
Fix exception catching regression
daxian-dbw dc01c2b
Fix test failures
daxian-dbw aa57e6b
Fix pipeline regressions
daxian-dbw 771dba7
Update the comments to make it more clear
daxian-dbw bab8f85
Complete a partial comment
daxian-dbw 98339f5
Changes to SteppablePipeline to support 'Clean' block
daxian-dbw 8d5e053
Clean up the steppable pipeline changes and add more comments
daxian-dbw 5c8cc9a
Add lots of tests
daxian-dbw c9634e6
Add additional functional tests for steppable pipeline
daxian-dbw 7f18442
Rename the new block from 'cleanup' to 'clean'
daxian-dbw 35e466b
Fix 3 tests and a comment
daxian-dbw deadba7
Update a couple test comments
daxian-dbw e30736a
Add 2 more tests for 'exit' scenarios
daxian-dbw a2c9174
Address Ilya's comments
daxian-dbw 7dbe15b
Add some more changes:
daxian-dbw aef7d95
Address new comments from Ilya
daxian-dbw 451830d
Update comments to make the code easier to understand
daxian-dbw 7ca9b4c
Update tests to use better names
daxian-dbw 0060e0d
Address comments from Paul and Joel
daxian-dbw 21538bb
Address Aditya's comment
daxian-dbw 535584c
Revert changes in ImplicitRemotingCommands.cs because they are not ne…
daxian-dbw 93305d4
Guard the 'clean' block behind an experimental feature
daxian-dbw 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
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.
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.