45 references to SendAsync
Microsoft.AspNetCore.Components.Server (4)
Circuits\CircuitHost.cs (2)
720await client.SendAsync("JS.Error", error); 783await Client.SendAsync("JS.EndUpdateRootComponents", batchId);
Circuits\RemoteJSRuntime.cs (1)
173await _clientProxy.SendAsync("JS.BeginTransmitStream", streamId);
ComponentHub.cs (1)
370private static Task NotifyClientError(IClientProxy client, string error) => client.SendAsync("JS.Error", error);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Hubs.cs (2)
33await Clients.Client(Context.ConnectionId).SendAsync("Echo", message); 113await Clients.All.SendAsync("Foo", Unserializable.Create());
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestServerTests.cs (1)
118return Clients.All.SendAsync("Echo", message);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
EchoHub.cs (2)
18return Clients.Group(groupName).SendAsync("Echo", message); 23return Clients.User(userName).SendAsync("Echo", message);
Microsoft.AspNetCore.SignalR.Tests (24)
HubConnectionHandlerTests.cs (4)
222await context.Clients.All.SendAsync("Send", "test"); 4522await callerService.Caller.SendAsync("Echo", "message").DefaultTimeout(); 4548await context.Clients.All.SendAsync("Send", "test"); 4638await context.Clients.All.SendAsync("Send", "test");
HubConnectionHandlerTestUtils\Hubs.cs (20)
25return Clients.User(userId).SendAsync("Send", message); 30return Clients.Users(userIds).SendAsync("Send", message); 35return Clients.Client(connectionId).SendAsync("Send", message); 40return Clients.Clients(connectionIds).SendAsync("Send", message); 50return Clients.Group(groupName).SendAsync("Send", message); 55return Clients.GroupExcept(groupName, excludedConnectionIds).SendAsync("Send", message); 60return Clients.Groups(groupNames).SendAsync("Send", message); 65return Clients.OthersInGroup(groupName).SendAsync("Send", message); 70return Clients.All.SendAsync("Broadcast", message); 75return Clients.All.SendAsync("Broadcast", new Result { Message = "test", paramName = "param" }); 80return Clients.All.SendAsync("Array", new[] { 1, 2, 3 }); 125return Clients.Client(Context.ConnectionId).SendAsync("Send", new { }); 164return Clients.AllExcept(excludedConnectionIds).SendAsync("Send", message); 174return Clients.Others.SendAsync("Send", message); 179return Clients.Caller.SendAsync("Send", message); 184return Clients.Caller.SendAsync("Send", new SelfRef()); 985await Clients.All.SendAsync("Send", $"{Context.ConnectionId} joined"); 1281return Clients.Caller.SendAsync("Send", new SelfRef()); 1286return Clients.All.SendAsync("Send", new SelfRef()); 1464await Clients.Client(id).SendAsync("Test", 1);
SignalR.Client.FunctionalTestApp (2)
TestHub.cs (2)
52return Clients.Client(Context.ConnectionId).SendAsync("Message", message); 57return Clients.Client(Context.ConnectionId).SendAsync("CustomObject", customObject);
SignalRSamples (10)
Hubs\Chat.cs (10)
13return Clients.All.SendAsync("Send", $"{name} joined the chat"); 19return Clients.All.SendAsync("Send", $"{name} left the chat"); 24return Clients.All.SendAsync("Send", $"{name}: {message}"); 29return Clients.Others.SendAsync("Send", $"{name}: {message}"); 34return Clients.Client(connectionId).SendAsync("Send", $"Private message from {name}: {message}"); 39return Clients.Group(groupName).SendAsync("Send", $"{name}@{groupName}: {message}"); 44return Clients.OthersInGroup(groupName).SendAsync("Send", $"{name}@{groupName}: {message}"); 51await Clients.Group(groupName).SendAsync("Send", $"{name} joined {groupName}"); 56await Clients.Group(groupName).SendAsync("Send", $"{name} left {groupName}"); 63return Clients.Caller.SendAsync("Send", $"{name}: {message}");