IUserIdProvider.GetUserId(HubConnectionContext) Method

Definition

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

String

The user ID for the specified connection.

Applies to