[System] Unify Mono.Security dependency to be same for all profiles
[mono.git] / mcs / class / System / System.Net / HttpListenerContext.platformnotsupported.cs
index 275d6d4ad14d7df3d47eb3d56b86d5f84d170dbc..71e3d48649bc026a85870f42587398035e6b8963 100644 (file)
@@ -49,7 +49,7 @@ namespace System.Net {
                public IPrincipal User {
                        get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
                }
-
+#if SECURITY_DEP
                public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtocol)
                {
                        throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
@@ -69,5 +69,6 @@ namespace System.Net {
                {
                        throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
                }
+#endif
        }
 }