-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Additional Validation for PauseThresholdWriter and ResumeThresholdWriter #77359
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
Changes from 2 commits
f76cf5b
0be73d8
e17d9f5
332c8f6
a751233
2cd9ae0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,15 +54,16 @@ public PipeOptions( | |
| { | ||
| pauseWriterThreshold = DefaultPauseWriterThreshold; | ||
| } | ||
halter73 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| else if (pauseWriterThreshold < 0) | ||
| { | ||
| ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.pauseWriterThreshold); | ||
| } | ||
|
|
||
| if (resumeWriterThreshold == -1) | ||
| { | ||
| resumeWriterThreshold = DefaultResumeWriterThreshold; | ||
| } | ||
|
|
||
| if (pauseWriterThreshold < 0) | ||
| { | ||
| ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.pauseWriterThreshold); | ||
| } | ||
|
||
| else if (resumeWriterThreshold < 0 || resumeWriterThreshold > pauseWriterThreshold) | ||
halter73 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.resumeWriterThreshold); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.