// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information. using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Microsoft.AspNet.SignalR.Hubs { public interface IHub : IDisposable { /// /// Gets a . Which contains information about the calling client. /// HubCallerContext Context { get; set; } /// /// Gets a dynamic object that represents all clients connected to this hub (not hub instance). /// HubConnectionContext Clients { get; set; } /// /// Gets the the hub instance. /// IGroupManager Groups { get; set; } /// /// Called when a new connection is made to the . /// Task OnConnected(); /// /// Called when a connection reconnects to the after a timeout. /// Task OnReconnected(); /// /// Called when a connection is disconnected from the . /// Task OnDisconnected(); } }