System.IO.Pipes: Add additional Create overloads for Mono (dotnet/corefx#31118)
authorFilip Navara <filip.navara@gmail.com>
Wed, 18 Jul 2018 03:46:58 +0000 (05:46 +0200)
committerPaulo Janotti <pauloja@microsoft.com>
Wed, 18 Jul 2018 03:46:58 +0000 (20:46 -0700)
commit3e8983a2c245bfdef640be5f5b92aea8c09453fc
tree535178e3b7f39fe90b7223b4b43d6a817687e139
parent3b6910d70ee6c3bb3b93c1bebb87072b11174a83
System.IO.Pipes: Add additional Create overloads for Mono (dotnet/corefx#31118)

* Add additional Create overloads in NamedPipeServerStream.Windows.cs and AnonymousPipeServerStream.Windows.cs to make code sharing in Mono easier.

* Add comments to Create methods about their usage in Mono. Replace if condition by an Assert.

Commit migrated from https://github.com/dotnet/corefx/commit/f252b5a964f6fd34b280be767518d989f4c2766f
src/libraries/System.IO.Pipes/src/System/IO/Pipes/AnonymousPipeServerStream.Windows.cs
src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Windows.cs