Skip to content

Conversation

@BrennanConroy
Copy link
Member

Fixes #25259

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Aug 26, 2020
@BrennanConroy BrennanConroy added this to the 5.0.0-rc1 milestone Aug 26, 2020
@BrennanConroy BrennanConroy requested a review from Pilchie August 26, 2020 20:15
@BrennanConroy BrennanConroy added the tell-mode Indicates a PR which is being merged during tell-mode label Aug 26, 2020
_clientCertificates = new X509CertificateCollection();
}
// System.Security.Cryptography isn't supported on WASM currently
catch { }
Copy link
Member

Choose a reason for hiding this comment

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

Catch PlatformNotSupportedException explicitly?

@Pilchie
Copy link
Member

Pilchie commented Aug 26, 2020

I approve the scenario for RC, pending other reviewers signing off, and CI passing.

_clientCertificates = new X509CertificateCollection();

// System.Security.Cryptography isn't supported on WASM currently
if (!Utils.IsRunningInBrowser())
Copy link
Contributor

@pranavkm pranavkm Aug 26, 2020

Choose a reason for hiding this comment

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

If you wanted to be extra nice, you could decorate the ClientCertificates property with [UnsupportedOSPlatform("browser")]

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not familiar with that. Does it tell an analyzer that you shouldn't use that property? Will it complain at us using it internally for null checks?

Copy link
Contributor

Choose a reason for hiding this comment

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

It'll warn if you use that property in a blazor application. Right now SignalR client doesn't claim to support browser so you wouldn't see the error internally. But it would print a warning in the null check once if you say the client targets browser.

Copy link
Member Author

Choose a reason for hiding this comment

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

SignalR client doesn't claim to support browser

Is this something we should look into in 6.0?

Copy link
Member

Choose a reason for hiding this comment

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

It doesn't look like we have [SupportedOSPlatform("browser")] anywhere yet in this repo or in the runtime repo. I see [UnsupportedOSPlatform("browser")] in a couple places in both repos though.

Why would SignalR need to explicitly claim to support the "browser" platform? If it's opt-in, why put [UnsupportedOSPlatform("browser")] all over?

@BrennanConroy
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@BrennanConroy
Copy link
Member Author

Ping reviewers

@Pilchie Pilchie merged commit a73ae50 into release/5.0 Aug 31, 2020
@Pilchie Pilchie deleted the brecon/pnse branch August 31, 2020 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants