SignalR's JSON protocol does not support polymorphic serialization on streaming methods #54227
Closed
1 task done
Labels
area-signalr
Includes: SignalR clients and servers
Is there an existing issue for this?
Describe the bug
In #47859, most of ASP.NET Core learned to serialize a polymorphic JSON hierarchy, but SignalR was omitted and still doesn't include the type discriminator declared on the base type, for example when streaming from server to client.
It would be great if this difference would not exist.
For me, the workaround of declaring the derived classes
[JsonPolymorphic]
etc. works.Expected Behavior
Streaming a base type from server to client should include the type discriminator.
Steps To Reproduce
Exceptions (if any)
No response
.NET Version
8.0.2
Anything else?
No response
The text was updated successfully, but these errors were encountered: