// 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. using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; namespace ChatSample { public interface IUserTracker { Task> UsersOnline(); Task AddUser(HubConnectionContext connection, UserDetails userDetails); Task RemoveUser(HubConnectionContext connection); event Action UsersJoined; event Action UsersLeft; } }