Freigeben über


DefaultUserIdProvider.GetUserId(HubConnectionContext) Methode

Definition

Ruft die Benutzer-ID für die angegebene Verbindung ab.

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

Parameter

connection
HubConnectionContext

Die Verbindung, für die die Benutzer-ID abgerufen werden soll.

Gibt zurück

Die Benutzer-ID für die angegebene Verbindung.

Implementiert

Gilt für: