From 9ea0681683c3ac9528a99ce6e8c717da732dcdfe Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Wed, 28 Oct 2015 16:07:29 -0700 Subject: [PATCH] Add some missing using statements. The lack of these statements was breaking the TFS build. Fixes #4143. --- .../System/Net/WebSockets/WebSocketHandle.WinRT.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs b/src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs index 383eb35060ec..fc691b94fa37 100644 --- a/src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs +++ b/src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs @@ -13,6 +13,9 @@ using Microsoft.Win32.SafeHandles; +using Windows.Web; +using RTWebSocketError = Windows.Networking.Sockets.WebSocketError; + namespace System.Net.WebSockets { internal partial struct WebSocketHandle @@ -41,12 +44,8 @@ public async Task ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, } catch (Exception ex) { - // TODO #4143: ** TFS BUILD IS BROKEN ** - // This doesn't compile right now due to missing types 'WebErrorStatus' and 'RTWebSocketError' - // Commenting out for now to allow the build to resume. - //WebErrorStatus status = RTWebSocketError.GetStatus(ex.HResult); - //var inner = new Exception(status.ToString(), ex); - var inner = ex; + WebErrorStatus status = RTWebSocketError.GetStatus(ex.HResult); + var inner = new Exception(status.ToString(), ex); WebSocketException wex = new WebSocketException(SR.net_webstatus_ConnectFailure, inner); if (Logging.On) {