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

SignalR C# client and deserialize using JsonSerializerContext (source generator) #4698

Open
msneijders opened this issue Feb 13, 2024 · 0 comments

Comments

@msneijders
Copy link

I was wondering, can I let the HubConnection use my JsonSerializerContext (json source generator) for deserializing incoming json objects?

_connection.On<Reporting.PrintJob>("ReceivePrintJob", job =>
{
    job.Print();
});

So that the incoming Reporting.PrintJob is deserialized with generated code. Or is this nonsensical?

I could only find json options setting on the serverside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant