Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser #41963

Conversation

MaximLipnin
Copy link
Contributor

@MaximLipnin MaximLipnin commented Sep 8, 2020

Part of #41087.

Almost all public APIs (besides void AddSubProtocol(string subProtocol)) in System.Net.WebSockets.ClientWebSocketOptions throw PNSE on Browser.

DocID Namespace Type Member Nesting
M:System.Net.WebSockets.ClientWebSocketOptions.get_Proxy System.Net.WebSockets ClientWebSocketOptions get_Proxy() 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_Cookies(System.Net.CookieContainer) System.Net.WebSockets ClientWebSocketOptions set_Cookies(CookieContainer) 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_UseDefaultCredentials(System.Boolean) System.Net.WebSockets ClientWebSocketOptions set_UseDefaultCredentials(Boolean) 0
M:System.Net.WebSockets.ClientWebSocketOptions.get_Credentials System.Net.WebSockets ClientWebSocketOptions get_Credentials() 0
M:System.Net.WebSockets.ClientWebSocketOptions.SetRequestHeader(System.String,System.String) System.Net.WebSockets ClientWebSocketOptions SetRequestHeader(String, String) 0
M:System.Net.WebSockets.ClientWebSocketOptions.get_ClientCertificates System.Net.WebSockets ClientWebSocketOptions get_ClientCertificates() 0
M:System.Net.WebSockets.ClientWebSocketOptions.SetBuffer(System.Int32,System.Int32) System.Net.WebSockets ClientWebSocketOptions SetBuffer(Int32, Int32) 0
M:System.Net.WebSockets.ClientWebSocketOptions.get_RemoteCertificateValidationCallback System.Net.WebSockets ClientWebSocketOptions get_RemoteCertificateValidationCallback() 0
M:System.Net.WebSockets.ClientWebSocketOptions.get_Cookies System.Net.WebSockets ClientWebSocketOptions get_Cookies() 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_RemoteCertificateValidationCallback(System.Net.Security.RemoteCertificateValidationCallback) System.Net.WebSockets ClientWebSocketOptions set_RemoteCertificateValidationCallback(RemoteCertificateValidationCallback) 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_KeepAliveInterval(System.TimeSpan) System.Net.WebSockets ClientWebSocketOptions set_KeepAliveInterval(TimeSpan) 0
M:System.Net.WebSockets.ClientWebSocketOptions.get_UseDefaultCredentials System.Net.WebSockets ClientWebSocketOptions get_UseDefaultCredentials() 0
M:System.Net.WebSockets.ClientWebSocketOptions.SetBuffer(System.Int32,System.Int32,System.ArraySegment{System.Byte}) System.Net.WebSockets ClientWebSocketOptions SetBuffer(Int32, Int32, ArraySegment) 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_Proxy(System.Net.IWebProxy) System.Net.WebSockets ClientWebSocketOptions set_Proxy(IWebProxy) 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_Credentials(System.Net.ICredentials) System.Net.WebSockets ClientWebSocketOptions set_Credentials(ICredentials) 0
M:System.Net.WebSockets.ClientWebSocketOptions.get_KeepAliveInterval System.Net.WebSockets ClientWebSocketOptions get_KeepAliveInterval() 0
M:System.Net.WebSockets.ClientWebSocketOptions.set_ClientCertificates(System.Security.Cryptography.X509Certificates.X509CertificateCollection) System.Net.WebSockets ClientWebSocketOptions set_ClientCertificates(X509CertificateCollection) 0

@ghost
Copy link

ghost commented Sep 8, 2020

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@mdh1418 mdh1418 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think src/libraries/System.Net.WebSockets.Client/Directory.Build.props is missing <IncludePlatformAttributes>true</IncludePlatformAttributes>. Other than that, looks good.

@mdh1418 mdh1418 merged commit 85b6aa7 into dotnet:master Sep 8, 2020
mdh1418 pushed a commit to mdh1418/runtime that referenced this pull request Sep 8, 2020
… on Browser (dotnet#41963)

* Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser

* Add the attributes to non-browser version of ClientWebSocketOptions class to avoid build error

* Add using

* Include platform attributes
@MaximLipnin MaximLipnin deleted the ClientWebSocketOptions_unsupported_on_browser branch September 9, 2020 06:38
mdh1418 added a commit that referenced this pull request Sep 9, 2020
* [wasm] Mark System.ComponentModel APIs as unsupported on Browser (#41094)

* [wasm] System.ComponentModel enable platform attributes

* [wasm] Mark ExtendedProtectionPolicyTypeConverter.ConvertTo as unsupported

* [wasm] Mark System.ComponentModel.TypeDescriptor.CreateInstance as unsupported

* [wasm] Mark System.ComponentModel.TypeDescriptionProvider.CreateInstance as unsupported

* [wasm] Mark System.ComponentModel.LicenseManager.CreateWithContext as unsupported

* [wasm] Mark System.ComponentModel.MaskedTextProvider.Clone as unsupported

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* [wasm] Mark System.Console APIs as unsupported on Browser (#41184)

* [wasm] Mark System.Console APIs as unsupported on Browser

* System.Console remove unsupported attribute from Console.Clear()

* System.Console mark SetIn as unsupported on Browser

* System.Console move UnsupportedOSPlatform attributes down to the accessor

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* Mark System.Diagnostics.FileVersionInfo as unsupported on Browser (#41271)

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* Mark System.Diagnostics.Process unsupported at assembly level (#41694)

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* [wasm] Mark System.IO.Compression APIs as unsupported on Browser (#41683)

* [wasm] System.IO.Compression.Brotli enable platform attributes

* Mark System.IO.Compression.Brotli unsupported at assembly level

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* [wasm] Mark System.IO.FileSystem.Watcher APIs as unsupported on Browser (#41682)

* [wasm] System.IO.FileSystem.Watcher enable platform attributes

* Mark System.IO.FileSystem.Watcher unsupported at assembly level

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* [wasm] Mark System.IO.IsolatedStorage APIs as unsupported on Browser (#41700)

* [wasm] System.IO.IsolatedStorage enable platform attributes

* Mark System.IO.IsolatedStorage Unsupported at assembly level

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* Mark some System.Net.* APIs as unsupported on Browser WASM (#40924)

* [wasm] Mark System.Threading.ThreadPool unsupported on Browser (#41891)

* System.Threading.ThreadPool enable platform attributes

* Mark System.Threading.ThreadPool APIs unsupported on browser

* System.Threading.ThreadPool Add Unsupported attribute to other ThreadPool files

* Remove Unsupported attributes from BindHandle

* Add windows Supported Attribute to BindHandle

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

* Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser (#41963)

* Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser

* Add the attributes to non-browser version of ClientWebSocketOptions class to avoid build error

* Add using

* Include platform attributes

* [wasm] Mark System.Net.NameResolution Unsupported at assembly level (#41985)

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
Co-authored-by: Maxim Lipnin <v-maxlip@microsoft.com>
mdh1418 pushed a commit to mdh1418/runtime that referenced this pull request Sep 11, 2020
… on Browser (dotnet#41963)

* Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser

* Add the attributes to non-browser version of ClientWebSocketOptions class to avoid build error

* Add using

* Include platform attributes
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@karelz karelz added this to the 6.0.0 milestone Jan 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants