Browse Source

[System] Add System.Net.WebSockets to the build

Jérémie Laval 13 years ago
parent
commit
6431a69e79

+ 85 - 1
mcs/class/System/System.Net.WebSockets/HttpListenerWebSocketContext.cs

@@ -30,6 +30,8 @@
 
 using System;
 using System.Net;
+using System.Collections.Specialized;
+using System.Collections.Generic;
 using System.Security.Principal;
 using System.Security.Cryptography.X509Certificates;
 using System.Runtime.CompilerServices;
@@ -38,7 +40,89 @@ namespace System.Net.WebSockets
 {
 	public class HttpListenerWebSocketContext : WebSocketContext
 	{
-		
+		[MonoTODO]
+		public override CookieCollection CookieCollection {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override NameValueCollection Headers {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override bool IsAuthenticated {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override bool IsLocal {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override bool IsSecureConnection {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override string Origin {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override Uri RequestUri {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override string SecWebSocketKey {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override IEnumerable<string> SecWebSocketProtocols {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override string SecWebSocketVersion {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override IPrincipal User {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public override WebSocket WebSocket {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
 	}
 }
 

+ 3 - 0
mcs/class/System/System.Net.WebSockets/WebSocket.cs

@@ -29,6 +29,9 @@
 #if NET_4_5
 
 using System;
+using System.IO;
+using System.Threading;
+using System.Threading.Tasks;
 using System.Runtime.CompilerServices;
 
 namespace System.Net.WebSockets

+ 2 - 0
mcs/class/System/System.Net.WebSockets/WebSocketContext.cs

@@ -29,6 +29,8 @@
 #if NET_4_5
 
 using System;
+using System.Collections.Specialized;
+using System.Collections.Generic;
 using System.Security.Principal;
 using System.Runtime.CompilerServices;
 

+ 2 - 2
mcs/class/System/System.Net.WebSockets/WebSocketException.cs

@@ -29,7 +29,7 @@
 #if NET_4_5
 
 using System;
-using System.Security.Principal;
+using System.ComponentModel;
 using System.Runtime.CompilerServices;
 
 namespace System.Net.WebSockets
@@ -71,7 +71,7 @@ namespace System.Net.WebSockets
 			
 		}
 
-		public WebSocketException (WebSocketError error, Exception innerException) : base (innerException)
+		public WebSocketException (WebSocketError error, Exception innerException)
 		{
 			WebSocketErrorCode = error;
 		}

+ 11 - 0
mcs/class/System/System.dll.sources

@@ -887,6 +887,17 @@ System.Net/WebRequest.cs
 System.Net/WebRequestMethods.cs
 System.Net/WebResponse.cs
 System.Net/WebUtility.cs
+System.Net.WebSockets/ClientWebSocket.cs
+System.Net.WebSockets/ClientWebSocketOptions.cs
+System.Net.WebSockets/HttpListenerWebSocketContext.cs
+System.Net.WebSockets/WebSocket.cs
+System.Net.WebSockets/WebSocketCloseStatus.cs
+System.Net.WebSockets/WebSocketContext.cs
+System.Net.WebSockets/WebSocketError.cs
+System.Net.WebSockets/WebSocketException.cs
+System.Net.WebSockets/WebSocketMessageType.cs
+System.Net.WebSockets/WebSocketReceiveResult.cs
+System.Net.WebSockets/WebSocketState.cs
 System/NewsStyleUriParser.cs
 System.Runtime.Versioning/FrameworkName.cs
 System.Security.AccessControl/SemaphoreAccessRule.cs