DefaultUserIdProvider.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:
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.