Delen via


DefaultUserIdProvider Class

Definition

The default provider for getting the user ID from a connection. This provider gets the user ID from the connection's User name identifier claim.

public ref class DefaultUserIdProvider : Microsoft::AspNetCore::SignalR::IUserIdProvider
public class DefaultUserIdProvider : Microsoft.AspNetCore.SignalR.IUserIdProvider
type DefaultUserIdProvider = class
    interface IUserIdProvider
Public Class DefaultUserIdProvider
Implements IUserIdProvider
Inheritance
DefaultUserIdProvider
Implements

Constructors

DefaultUserIdProvider()

Methods

GetUserId(HubConnectionContext)

Gets the user ID for the specified connection.

Applies to