diff --git a/src/SignalR/server/Core/ref/Microsoft.AspNetCore.SignalR.Core.netcoreapp.cs b/src/SignalR/server/Core/ref/Microsoft.AspNetCore.SignalR.Core.netcoreapp.cs index 54b22b97b7..f23da84b52 100644 --- a/src/SignalR/server/Core/ref/Microsoft.AspNetCore.SignalR.Core.netcoreapp.cs +++ b/src/SignalR/server/Core/ref/Microsoft.AspNetCore.SignalR.Core.netcoreapp.cs @@ -84,6 +84,7 @@ namespace Microsoft.AspNetCore.SignalR } public static partial class HubClientsExtensions { + public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable excludedConnectionIds) { throw null; } public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1) { throw null; } public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2) { throw null; } public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3) { throw null; } @@ -92,6 +93,7 @@ namespace Microsoft.AspNetCore.SignalR public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6) { throw null; } public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7) { throw null; } public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7, string excludedConnectionId8) { throw null; } + public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable connectionIds) { throw null; } public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1) { throw null; } public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2) { throw null; } public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3) { throw null; } @@ -100,6 +102,7 @@ namespace Microsoft.AspNetCore.SignalR public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3, string connection4, string connection5, string connection6) { throw null; } public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3, string connection4, string connection5, string connection6, string connection7) { throw null; } public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3, string connection4, string connection5, string connection6, string connection7, string connection8) { throw null; } + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, System.Collections.Generic.IEnumerable excludedConnectionIds) { throw null; } public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1) { throw null; } public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2) { throw null; } public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3) { throw null; } @@ -108,6 +111,7 @@ namespace Microsoft.AspNetCore.SignalR public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6) { throw null; } public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7) { throw null; } public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7, string excludedConnectionId8) { throw null; } + public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable groupNames) { throw null; } public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1) { throw null; } public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2) { throw null; } public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3) { throw null; } @@ -116,6 +120,7 @@ namespace Microsoft.AspNetCore.SignalR public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3, string group4, string group5, string group6) { throw null; } public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3, string group4, string group5, string group6, string group7) { throw null; } public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3, string group4, string group5, string group6, string group7, string group8) { throw null; } + public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable userIds) { throw null; } public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1) { throw null; } public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2) { throw null; } public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2, string user3) { throw null; } diff --git a/src/SignalR/server/Core/src/HubClientsExtensions.cs b/src/SignalR/server/Core/src/HubClientsExtensions.cs index 8936bbc979..8f29cb89f3 100644 --- a/src/SignalR/server/Core/src/HubClientsExtensions.cs +++ b/src/SignalR/server/Core/src/HubClientsExtensions.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; +using System.Linq; namespace Microsoft.AspNetCore.SignalR { @@ -126,6 +127,17 @@ namespace Microsoft.AspNetCore.SignalR return hubClients.AllExcept(new [] { excludedConnectionId1, excludedConnectionId2, excludedConnectionId3, excludedConnectionId4, excludedConnectionId5, excludedConnectionId6, excludedConnectionId7, excludedConnectionId8 }); } + /// + /// Gets a that can be used to invoke methods on all clients connected to the hub excluding the specified connections. + /// + /// The abstraction that provides access to connections. + /// The connection IDs to exclude. + /// A representing the methods that can be invoked on the clients. + public static T AllExcept(this IHubClients hubClients, IEnumerable excludedConnectionIds) + { + return hubClients.AllExcept(excludedConnectionIds.ToList()); + } + /// /// Gets a that can be used to invoke methods on the specified connections. /// @@ -242,6 +254,17 @@ namespace Microsoft.AspNetCore.SignalR return hubClients.Clients(new [] { connection1, connection2, connection3, connection4, connection5, connection6, connection7, connection8 }); } + /// + /// Gets a that can be used to invoke methods on the specified connections. + /// + /// The abstraction that provides access to connections. + /// The connection IDs. + /// A representing the methods that can be invoked on the clients. + public static T Clients(this IHubClients hubClients, IEnumerable connectionIds) + { + return hubClients.Clients(connectionIds.ToList()); + } + /// /// Gets a that can be used to invoke methods on all connections in all of the specified groups. /// @@ -358,6 +381,17 @@ namespace Microsoft.AspNetCore.SignalR return hubClients.Groups(new [] { group1, group2, group3, group4, group5, group6, group7, group8 }); } + /// + /// Gets a that can be used to invoke methods on all connections in all of the specified groups. + /// + /// The abstraction that provides access to connections. + /// The group names. + /// A representing the methods that can be invoked on the clients. + public static T Groups(this IHubClients hubClients, IEnumerable groupNames) + { + return hubClients.Groups(groupNames.ToList()); + } + /// /// Gets a that can be used to invoke methods on all connections in the specified group excluding the specified connections. /// @@ -482,6 +516,18 @@ namespace Microsoft.AspNetCore.SignalR return hubClients.GroupExcept(groupName, new [] { excludedConnectionId1, excludedConnectionId2, excludedConnectionId3, excludedConnectionId4, excludedConnectionId5, excludedConnectionId6, excludedConnectionId7, excludedConnectionId8 }); } + /// + /// Gets a that can be used to invoke methods on all connections in the specified group excluding the specified connections. + /// + /// The abstraction that provides access to connections. + /// The group name. + /// The connection IDs to exclude. + /// A representing the methods that can be invoked on the clients. + public static T GroupExcept(this IHubClients hubClients, string groupName, IEnumerable excludedConnectionIds) + { + return hubClients.GroupExcept(groupName, excludedConnectionIds.ToList()); + } + /// /// Gets a that can be used to invoke methods on all connections associated with all of the specified users. /// @@ -597,5 +643,16 @@ namespace Microsoft.AspNetCore.SignalR { return hubClients.Users(new [] { user1, user2, user3, user4, user5, user6, user7, user8 }); } + + /// + /// Gets a that can be used to invoke methods on all connections associated with all of the specified users. + /// + /// The abstraction that provides access to connections. + /// The user IDs. + /// A representing the methods that can be invoked on the clients. + public static T Users(this IHubClients hubClients, IEnumerable userIds) + { + return hubClients.Users(userIds.ToList()); + } } }