Using signalR in asp.net core, how do I change the userID convention to use the users email address instead of default userId?
问题 Im using <PackageReference Include="Microsoft.AspNetCore.SignalR.Core" Version="1.1.0" /> in an asp.net core web api. I can see by default that if I want to send a specific user a message I can call a method such as _hub.Clients.User("c5MOTEmXsEZjoVf-y_sVQD_g-yBis9fvLMbyNJX3M31").SendAsync("MessageUpdated", "ee"); However, I would like to know, is there any way to change this such that I can instead pass in a different value for the userId? For example, users email address instead? Is this