22 lines
747 B
C#
22 lines
747 B
C#
// 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
|
|
{
|
|
/// <summary>
|
|
/// A context abstraction for a hub.
|
|
/// </summary>
|
|
public interface IHubContext<THub> where THub : Hub
|
|
{
|
|
/// <summary>
|
|
/// Gets a <see cref="IHubClients"/> that can be used to invoke methods on clients connected to the hub.
|
|
/// </summary>
|
|
IHubClients Clients { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a <see cref="IGroupManager"/> that can be used to add and remove connections to named groups.
|
|
/// </summary>
|
|
IGroupManager Groups { get; }
|
|
}
|
|
}
|