Include correct error code in WebSocket.ThrowOnInvalidState (dotnet/corefx#35960)
authorStephen Toub <stoub@microsoft.com>
Tue, 12 Mar 2019 15:05:04 +0000 (11:05 -0400)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 15:05:04 +0000 (11:05 -0400)
commit7bba04590d83bcf7414cc493d05d7e9ab3c27e1c
tree1ecb374095258c6d95825c7004bf82fc5fe8f104
parent4e32bfa338e1955d41fde653656ee76725a07382
Include correct error code in WebSocket.ThrowOnInvalidState (dotnet/corefx#35960)

* Include correct error code in WebSocket.ThrowOnInvalidState

* Address PR feedback

* Fix UWP leg

Commit migrated from https://github.com/dotnet/corefx/commit/ef145001b10660be940aeb9318e0ff7e306f65bc
src/libraries/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.Managed.cs
src/libraries/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs
src/libraries/System.Net.WebSockets.Client/tests/AbortTest.cs
src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs
src/libraries/System.Net.WebSockets.Client/tests/ClientWebSocketTestBase.cs
src/libraries/System.Net.WebSockets.Client/tests/ConnectTest.cs
src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs
src/libraries/System.Net.WebSockets/tests/WebSocketTests.cs