// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
using System.Threading.Tasks;
namespace Microsoft.AspNet.SignalR
{
///
/// Manages groups for a connection.
///
public interface IGroupManager
{
///
/// Adds a connection to the specified group.
///
/// The connection id to add to the group.
/// The name of the group
/// A task that represents the connection id being added to the group.
Task Add(string connectionId, string groupName);
///
/// Removes a connection from the specified group.
///
/// The connection id to remove from the group.
/// The name of the group
/// A task that represents the connection id being removed from the group.
Task Remove(string connectionId, string groupName);
}
}