AspNetCore.Docs.Samples
AspNetCore.Docs.Samples copied to clipboard
SignalR Hub Example Update to 7 plus add Hub Client Results
------ Collaborative Work In Progress while in draft ------
Contributes to
- dotnet/AspNetCore.Docs#27996
- dotnet/AspNetCore.Docs#28459
Changes from existing 6.x version:
- Updated to .NET 7 from scratch so it has the latest js libraries, templates, etc.
- Added ChatHubClientResults.cs to the hub snippet examples provided by serpent5 last 7/2022.
@BrennanConroy,
Could you help me with the 3 Client Results hub classes for our standard hubs SingalRChat sample? This Client Results section of this doc: [Use hubs in SignalR for ASP.NET Core]{https://learn.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-7.0#client-results} has 3 include code samples that are generalized, but I need to move them into compilable/usable snippets here. Then I can link the updated snippets back the doc.
The 3 Client Results hub samples are here in this PR:
- SignalRHubsSample\Snippets\Hubs\ChatHubClientResults.cs
- SignalRHubsSample\Snippets\Hubs\ChatHubClientResultsContext.cs
- SignalRHubsSample\Snippets\Hubs\ChatHubClientResultsStronglyTyped.cs

Sorry to ask, I have been trying to work out the intent of how client results work but I'm not up to speed enough on SignalR to pull it off.
closing and reopening to run checks again