-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Support primitive type/classes in HubConnection.on() #25773
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/Utils.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/Utils.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/Utils.java
Outdated
Show resolved
Hide resolved
Hello human! Please make sure you've included the Shiproom Template in a comment or (preferably) the PR description. Also, make sure this PR is not marked as a draft and is ready-to-merge. |
@Pilchie can we take this for rc2? It fixes a bug where customers couldn't use primitive types in the |
Approved for .NET 5 RC2. |
Fixes #25088
Changes the
.on()
method so that it handles casting to primitives, similar to what we already do ininvoke()
andstream()
. Also changes tests to test that this new behavior works.