Switch WaitNamedPipe and CreateNamedPipeClient invocation ordering. (dotnet/corefx...
authorJiri Appl <jiria@microsoft.com>
Fri, 13 Oct 2017 20:42:43 +0000 (13:42 -0700)
committerPaulo Janotti <pauloja@microsoft.com>
Fri, 13 Oct 2017 20:42:43 +0000 (13:42 -0700)
commitd9a8e10f6f0dc954b323c75bc1dbc4ef7de541a0
tree86846762dfff4494ac7a7eb0851f1bd4bd7d6d33
parent128c8d1d5f41a21434cddfe6df207d81256bd6ca
Switch WaitNamedPipe and CreateNamedPipeClient invocation ordering. (dotnet/corefx#24616)

* Switch WaitNamedPipe and CreateNamedPipeClient invocation ordering.

We need to do this as WaitNamedPipe is not supported in Windows Containers.
By default using CreateNamedPipeClient first with call to WaitNamedPipe as
a fallback only will allow us to use NamedPipeClientStream inside Windows
Containers.

* Integrate feedback from PR.

Commit migrated from https://github.com/dotnet/corefx/commit/e003701727df908d6eb7ba7b814c74924c498377
src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeClientStream.Windows.cs