dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.6k stars 25.3k forks source link

Topic Rewrite/Update: Mapping SignalR Users to Connections #28410

Open wadepickett opened 1 year ago

wadepickett commented 1 year ago

Create a new .NET Core topic following the general outline of this 4.x Framework topic (from 2014): Mapping SignalR Users to Connections

For review I would like rethink this as a new topic, rather than a port update of the 4.x topic as is.

Why this topic is needed:

Draft outline for review and any suggestions are very welcome:

When the topic is published, remember to link to it from other SignalR topics that refer mapping and retaining SignalR connection ID's and related user information. For example: Send messages from outside a hub: Get an instance of IHubContext in middleware

See related PR #28343

Reminder: The original doc has a lot of "you" and "your" in there to remove Example, this: "If your application needs to map a user to the connection ID and persist that mapping, you can do one of the following:" ...would change to this: Apps that need to map a user to the connection ID and persist that mapping can do one of the following:

wadepickett commented 1 year ago

@BrennanConroy, filed this issue per the discussion on PR #28343.

Are there any changes you would like to see in the scope, outline, and title?

@bradygaster, great to get your thoughts on this topic as well.