Share via


DefaultUserIdProvider.GetUserId(HubConnectionContext) Method

Definition

Gets the user ID for the specified connection.

public:
 virtual System::String ^ GetUserId(Microsoft::AspNetCore::SignalR::HubConnectionContext ^ connection);
public virtual string GetUserId (Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
public virtual string? GetUserId (Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
abstract member GetUserId : Microsoft.AspNetCore.SignalR.HubConnectionContext -> string
override this.GetUserId : Microsoft.AspNetCore.SignalR.HubConnectionContext -> string
Public Overridable 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.

Implements

Applies to