aspnetcore/src/Microsoft.AspNetCore.Signal.../IHubCallerClients`T.cs

29 lines
1.1 KiB
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>
/// An abstraction that provides access to client connections, including the one that sent the current invocation.
/// </summary>
/// <typeparam name="T">The client caller type.</typeparam>
public interface IHubCallerClients<T> : IHubClients<T>
{
/// <summary>
/// Gets a caller to the connection which triggered the current invocation.
/// </summary>
T Caller { get; }
/// <summary>
/// Gets a caller to all connections except the one which triggered the current invocation.
/// </summary>
T Others { get; }
/// <summary>
/// Gets a caller to all connections in the specified group, except the one which triggered the current invocation.
/// </summary>
/// <returns>A client caller.</returns>
T OthersInGroup(string groupName);
}
}