// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.SignalR
{
///
/// A provider abstraction for configuring the "User ID" for a connection.
///
/// is used by to invoke connections associated with a user.
public interface IUserIdProvider
{
///
/// Gets the user ID for the specified connection.
///
/// The connection to get the user ID for.
/// The user ID for the specified connection.
string GetUserId(HubConnectionContext connection);
}
}