2 writes to Clients
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
129
hub.
Clients
= mockCaller.Object;
Microsoft.AspNetCore.SignalR.Core (1)
Internal\DefaultHubDispatcher.cs (1)
628
hub.
Clients
= new HubCallerClients(_hubContext.Clients, connection.ConnectionId, connection.ActiveInvocationLimit) { InvokeAllowed = invokeAllowed };
61 references to Clients
JwtSample (1)
Broadcaster.cs (1)
14
Clients
.All.SendAsync("Message", sender, message);
Microsoft.AspNetCore.Components.Server (9)
ComponentHub.cs (9)
91
await NotifyClientError(
Clients
.Caller, $"The circuit host '{circuitHost.CircuitId}' has already been initialized.");
107
await NotifyClientError(
Clients
.Caller, "The uris provided are invalid.");
115
await NotifyClientError(
Clients
.Caller, "The list of component records is not valid.");
122
var circuitClient = new CircuitClientProxy(
Clients
.Caller, Context.ConnectionId);
157
await NotifyClientError(
Clients
.Caller, "The circuit failed to initialize.");
177
await NotifyClientError(
Clients
.Caller, "The list of component operations is not valid.");
203
Clients
.Caller,
352
await NotifyClientError(
Clients
.Caller, "Circuit has been shut down due to error.");
361
await NotifyClientError(
Clients
.Caller, "Circuit not initialized.");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
Hubs.cs (4)
31
await
Clients
.Client(Context.ConnectionId).SendAsync("Echo", message);
36
await
Clients
.Client(Context.ConnectionId).SendAsync("NoClientHandler");
111
await
Clients
.All.SendAsync("Foo", Unserializable.Create());
304
return
Clients
.Caller.SendAsync("NewProtocolMethodClient");
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestServerTests.cs (1)
118
return
Clients
.All.SendAsync("Echo", message);
Microsoft.AspNetCore.SignalR.Core (5)
DynamicHub.cs (1)
22
_clients = new DynamicHubClients(base.
Clients
);
Hub`T.cs (1)
25
_clients = new TypedHubClients<T>(base.
Clients
);
Internal\DefaultHubDispatcher.cs (3)
363
Debug.Assert(hub.
Clients
is HubCallerClients);
367
((HubCallerClients)hub.
Clients
).TrySetSemaphoreReleased();
461
if (hub?.
Clients
is HubCallerClients hubCallerClients)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
EchoHub.cs (2)
18
return
Clients
.Group(groupName).SendAsync("Echo", message);
23
return
Clients
.User(userName).SendAsync("Echo", message);
Microsoft.AspNetCore.SignalR.Tests (27)
HubConnectionHandlerTestUtils\Hubs.cs (27)
25
return
Clients
.User(userId).SendAsync("Send", message);
30
return
Clients
.Users(userIds).SendAsync("Send", message);
35
return
Clients
.Client(connectionId).SendAsync("Send", message);
40
return
Clients
.Clients(connectionIds).SendAsync("Send", message);
50
return
Clients
.Group(groupName).SendAsync("Send", message);
55
return
Clients
.GroupExcept(groupName, excludedConnectionIds).SendAsync("Send", message);
60
return
Clients
.Groups(groupNames).SendAsync("Send", message);
65
return
Clients
.OthersInGroup(groupName).SendAsync("Send", message);
70
return
Clients
.All.SendAsync("Broadcast", message);
75
return
Clients
.All.SendAsync("Broadcast", new Result { Message = "test", paramName = "param" });
80
return
Clients
.All.SendAsync("Array", new[] { 1, 2, 3 });
125
return
Clients
.Client(Context.ConnectionId).SendAsync("Send", new { });
164
return
Clients
.AllExcept(excludedConnectionIds).SendAsync("Send", message);
174
return
Clients
.Others.SendAsync("Send", message);
179
return
Clients
.Caller.SendAsync("Send", message);
184
return
Clients
.Caller.SendAsync("Send", new SelfRef());
340
var sum = await
Clients
.Caller.InvokeAsync<int>("Sum", num, cancellationToken: default);
346
var caller =
Clients
.Caller;
364
var sum = await
Clients
.Caller.InvokeAsync<int>("Sum", 1, cancellationToken: default);
370
var sum = await
Clients
.Caller.InvokeAsync<int>("Sum", 1, cancellationToken: default);
985
await
Clients
.All.SendAsync("Send", $"{Context.ConnectionId} joined");
1281
return
Clients
.Caller.SendAsync("Send", new SelfRef());
1286
return
Clients
.All.SendAsync("Send", new SelfRef());
1313
await
Clients
.Caller.InvokeAsync<int>("Test", cancellationToken: default);
1321
await
Clients
.Caller.InvokeAsync<int>("Test", cancellationToken: default);
1336
_service.SetCaller(
Clients
.Caller);
1464
await
Clients
.Client(id).SendAsync("Test", 1);
SignalR.Client.FunctionalTestApp (2)
TestHub.cs (2)
52
return
Clients
.Client(Context.ConnectionId).SendAsync("Message", message);
57
return
Clients
.Client(Context.ConnectionId).SendAsync("CustomObject", customObject);
SignalRSamples (10)
Hubs\Chat.cs (10)
13
return
Clients
.All.SendAsync("Send", $"{name} joined the chat");
19
return
Clients
.All.SendAsync("Send", $"{name} left the chat");
24
return
Clients
.All.SendAsync("Send", $"{name}: {message}");
29
return
Clients
.Others.SendAsync("Send", $"{name}: {message}");
34
return
Clients
.Client(connectionId).SendAsync("Send", $"Private message from {name}: {message}");
39
return
Clients
.Group(groupName).SendAsync("Send", $"{name}@{groupName}: {message}");
44
return
Clients
.OthersInGroup(groupName).SendAsync("Send", $"{name}@{groupName}: {message}");
51
await
Clients
.Group(groupName).SendAsync("Send", $"{name} joined {groupName}");
56
await
Clients
.Group(groupName).SendAsync("Send", $"{name} left {groupName}");
63
return
Clients
.Caller.SendAsync("Send", $"{name}: {message}");