Remove Commit from PipeWriter (dotnet/corefx#27182)
authorDavid Fowler <davidfowl@gmail.com>
Fri, 16 Feb 2018 05:55:28 +0000 (21:55 -0800)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2018 05:55:28 +0000 (21:55 -0800)
commit20a8749ee13af6ad36a792375326cd56935c5644
tree38478c5abfedf5733becce263794867f86ee6eef
parent7a66d2443e441114d758c07a562a01b78b8b95d3
Remove Commit from PipeWriter (dotnet/corefx#27182)

- PipeWriter.Complete now commits any uncommitted data instead of throwing.
- Updated the tests

Commit migrated from https://github.com/dotnet/corefx/commit/77c45b1fc1b87bf1e131ab16e672d36f557e088d
src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.DefaultPipeWriter.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeWriter.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/ThrowHelper.cs
src/libraries/System.IO.Pipelines/tests/PipeLengthTests.cs
src/libraries/System.IO.Pipelines/tests/PipePoolTests.cs
src/libraries/System.IO.Pipelines/tests/PipeReaderWriterFacts.cs