AspNetCore.Docs.Samples icon indicating copy to clipboard operation
AspNetCore.Docs.Samples copied to clipboard

SignalR Hub Example Update to 7 plus add Hub Client Results

Open wadepickett opened this issue 1 year ago • 2 comments

------ 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.

wadepickett avatar Mar 30 '23 20:03 wadepickett

@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:

  1. SignalRHubsSample\Snippets\Hubs\ChatHubClientResults.cs
  2. SignalRHubsSample\Snippets\Hubs\ChatHubClientResultsContext.cs
  3. SignalRHubsSample\Snippets\Hubs\ChatHubClientResultsStronglyTyped.cs
image

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.

wadepickett avatar Mar 30 '23 21:03 wadepickett

closing and reopening to run checks again

wadepickett avatar Dec 12 '23 21:12 wadepickett