MultipleClients -> Clients (#1269)
This commit is contained in:
parent
7ab7e83988
commit
e1f9a65083
|
|
@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
public dynamic AllExcept(IReadOnlyList<string> excludedIds) => new DynamicClientProxy(_clients.AllExcept(excludedIds));
|
public dynamic AllExcept(IReadOnlyList<string> excludedIds) => new DynamicClientProxy(_clients.AllExcept(excludedIds));
|
||||||
public dynamic Caller => new DynamicClientProxy(_clients.Caller);
|
public dynamic Caller => new DynamicClientProxy(_clients.Caller);
|
||||||
public dynamic Client(string connectionId) => new DynamicClientProxy(_clients.Client(connectionId));
|
public dynamic Client(string connectionId) => new DynamicClientProxy(_clients.Client(connectionId));
|
||||||
public dynamic MultipleClients(IReadOnlyList<string> connectionIds) => new DynamicClientProxy(_clients.MultipleClients(connectionIds));
|
public dynamic Clients(IReadOnlyList<string> connectionIds) => new DynamicClientProxy(_clients.Clients(connectionIds));
|
||||||
public dynamic Group(string groupName) => new DynamicClientProxy(_clients.Group(groupName));
|
public dynamic Group(string groupName) => new DynamicClientProxy(_clients.Group(groupName));
|
||||||
public dynamic GroupExcept(string groupName, IReadOnlyList<string> excludedIds) => new DynamicClientProxy(_clients.GroupExcept(groupName, excludedIds));
|
public dynamic GroupExcept(string groupName, IReadOnlyList<string> excludedIds) => new DynamicClientProxy(_clients.GroupExcept(groupName, excludedIds));
|
||||||
public dynamic OthersInGroup(string groupName) => new DynamicClientProxy(_clients.OthersInGroup(groupName));
|
public dynamic OthersInGroup(string groupName) => new DynamicClientProxy(_clients.OthersInGroup(groupName));
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,9 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
return _hubClients.User(userId);
|
return _hubClients.User(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IClientProxy MultipleClients(IReadOnlyList<string> connectionIds)
|
public IClientProxy Clients(IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return _hubClients.MultipleClients(connectionIds);
|
return _hubClients.Clients(connectionIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
return new GroupExceptProxy<THub>(_lifetimeManager, groupName, excludeIds);
|
return new GroupExceptProxy<THub>(_lifetimeManager, groupName, excludeIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IClientProxy MultipleClients(IReadOnlyList<string> connectionIds)
|
public IClientProxy Clients(IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return new MultipleClientProxy<THub>(_lifetimeManager, connectionIds);
|
return new MultipleClientProxy<THub>(_lifetimeManager, connectionIds);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
return TypedClientBuilder<T>.Build(new SingleClientProxy<THub>(_lifetimeManager, connectionId));
|
return TypedClientBuilder<T>.Build(new SingleClientProxy<THub>(_lifetimeManager, connectionId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public T MultipleClients(IReadOnlyList<string> connectionIds)
|
public T Clients(IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return TypedClientBuilder<T>.Build(new MultipleClientProxy<THub>(_lifetimeManager, connectionIds));
|
return TypedClientBuilder<T>.Build(new MultipleClientProxy<THub>(_lifetimeManager, connectionIds));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
|
|
||||||
T Client(string connectionId);
|
T Client(string connectionId);
|
||||||
|
|
||||||
T MultipleClients(IReadOnlyList<string> connectionIds);
|
T Clients(IReadOnlyList<string> connectionIds);
|
||||||
|
|
||||||
T Group(string groupName);
|
T Group(string groupName);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,9 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
return TypedClientBuilder<T>.Build(_hubClients.GroupExcept(groupName, excludeIds));
|
return TypedClientBuilder<T>.Build(_hubClients.GroupExcept(groupName, excludeIds));
|
||||||
}
|
}
|
||||||
|
|
||||||
public T MultipleClients(IReadOnlyList<string> connectionIds)
|
public T Clients(IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return TypedClientBuilder<T>.Build(_hubClients.MultipleClients(connectionIds));
|
return TypedClientBuilder<T>.Build(_hubClients.Clients(connectionIds));
|
||||||
}
|
}
|
||||||
|
|
||||||
public T OthersInGroup(string groupName)
|
public T OthersInGroup(string groupName)
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests.HubEndpointTestUtils
|
||||||
|
|
||||||
public Task SendToMultipleClients(string message, IReadOnlyList<string> connectionIds)
|
public Task SendToMultipleClients(string message, IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return Clients.MultipleClients(connectionIds).InvokeAsync("Send", message);
|
return Clients.Clients(connectionIds).InvokeAsync("Send", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task GroupAddMethod(string groupName)
|
public Task GroupAddMethod(string groupName)
|
||||||
|
|
@ -183,7 +183,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests.HubEndpointTestUtils
|
||||||
|
|
||||||
public Task SendToMultipleClients(string message, IReadOnlyList<string> connectionIds)
|
public Task SendToMultipleClients(string message, IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return Clients.MultipleClients(connectionIds).Send(message);
|
return Clients.Clients(connectionIds).Send(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task GroupAddMethod(string groupName)
|
public Task GroupAddMethod(string groupName)
|
||||||
|
|
@ -253,7 +253,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests.HubEndpointTestUtils
|
||||||
|
|
||||||
public Task SendToMultipleClients(string message, IReadOnlyList<string> connectionIds)
|
public Task SendToMultipleClients(string message, IReadOnlyList<string> connectionIds)
|
||||||
{
|
{
|
||||||
return Clients.MultipleClients(connectionIds).Send(message);
|
return Clients.Clients(connectionIds).Send(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task DelayedSend(string connectionId, string message)
|
public async Task DelayedSend(string connectionId, string message)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue