IUserIdProvider.GetUserId(HubConnectionContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the user ID for the specified connection.
public:
System::String ^ GetUserId(Microsoft::AspNetCore::SignalR::HubConnectionContext ^ connection);
public string GetUserId (Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
public string? GetUserId (Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
abstract member GetUserId : Microsoft.AspNetCore.SignalR.HubConnectionContext -> string
Public Function GetUserId (connection As HubConnectionContext) As String
Parameters
- connection
- HubConnectionContext
The connection to get the user ID for.
Returns
The user ID for the specified connection.