Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / class / System / System.Net / HttpListenerContext.cs
index ca32815943575d34e9ae1a76ff927f77ad262538..5a3a2f0f445be565d7b01433dce630f5c6d7cccb 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0 && SECURITY_DEP
+#if SECURITY_DEP
 
 using System.Collections.Specialized;
 using System.IO;
 using System.Security.Principal;
 using System.Text;
+using System.Threading.Tasks;
+using System.Net.WebSockets;
+
 namespace System.Net {
        public sealed class HttpListenerContext {
                HttpListenerRequest request;
@@ -133,6 +136,30 @@ namespace System.Net {
                                return null;
                        } 
                }
+
+               [MonoTODO]
+               public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtocol)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtocol, TimeSpan keepAliveInterval)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment<byte> internalBuffer)
+               {
+                       throw new NotImplementedException ();
+               }
        }
 }
 #endif