40 references to SendInvocationAsync
Microsoft.AspNetCore.SignalR.Tests (40)
HubConnectionHandlerTests.Activity.cs (3)
57
await client.
SendInvocationAsync
(nameof(MethodHub.Echo), "test").DefaultTimeout();
66
await client.
SendInvocationAsync
("RenamedMethod").DefaultTimeout();
72
await client.
SendInvocationAsync
(nameof(MethodHub.ActivityMethod)).DefaultTimeout();
HubConnectionHandlerTests.cs (37)
155
await client.
SendInvocationAsync
(nameof(AbortHub.Kill)).DefaultTimeout();
960
await client.
SendInvocationAsync
(nameof(MethodHub.BlockingMethod)).DefaultTimeout();
1383
await firstClient.
SendInvocationAsync
(nameof(MethodHub.BroadcastMethod), "test").DefaultTimeout();
1421
await firstClient.
SendInvocationAsync
(nameof(MethodHub.SendArray)).DefaultTimeout();
1459
await firstClient.
SendInvocationAsync
("SendToOthers", "To others").DefaultTimeout();
1469
await secondClient.
SendInvocationAsync
("BroadcastMethod", "To everyone").DefaultTimeout();
1500
await firstClient.
SendInvocationAsync
("SendToCaller", "To caller").DefaultTimeout();
1507
await firstClient.
SendInvocationAsync
("BroadcastMethod", "To everyone").DefaultTimeout();
1570
await firstClient.
SendInvocationAsync
("SendToAllExcept", "To second", excludeThirdClientId).DefaultTimeout();
1571
await firstClient.
SendInvocationAsync
("SendToAllExcept", "To third", excludeSecondClientId).DefaultTimeout();
1614
await firstClient.
SendInvocationAsync
("SendToMultipleClients", "Second and Third", secondAndThirdClients).DefaultTimeout();
1659
await firstClient.
SendInvocationAsync
(nameof(MethodHub.SendToMultipleUsers), new[] { "userB", "userC" }, "Second and Third").DefaultTimeout();
1712
await firstClient.
SendInvocationAsync
(nameof(MethodHub.GroupSendMethod), "testGroup", "test").DefaultTimeout();
1759
await firstClient.
SendInvocationAsync
("GroupExceptSendMethod", "testGroup", "test", excludedConnectionIds).DefaultTimeout();
1810
await firstClient.
SendInvocationAsync
("SendToOthersInGroup", "testGroup", "test").DefaultTimeout();
1854
await firstClient.
SendInvocationAsync
(nameof(MethodHub.SendToMultipleGroups), "test", groupNames).DefaultTimeout();
1890
await client.
SendInvocationAsync
(nameof(MethodHub.GroupRemoveMethod), "testGroup").DefaultTimeout();
1916
await firstClient.
SendInvocationAsync
("ClientSendMethod", "userB", "test").DefaultTimeout();
1950
await firstClient.
SendInvocationAsync
("ConnectionSendMethod", secondClient.Connection.ConnectionId, "test").DefaultTimeout();
1983
await firstClient.
SendInvocationAsync
("DelayedSend", secondClient.Connection.ConnectionId, "test").DefaultTimeout();
2142
await client1.
SendInvocationAsync
(nameof(MethodHub.BroadcastMethod), sentMessage);
2395
await client.
SendInvocationAsync
(nameof(MethodHub.BroadcastItem)).DefaultTimeout();
2425
await client.
SendInvocationAsync
(nameof(MethodHub.BroadcastItem)).DefaultTimeout();
2465
await client.
SendInvocationAsync
(nameof(MethodHub.BroadcastItem)).DefaultTimeout();
2561
await client2.
SendInvocationAsync
(nameof(MethodHub.SendToMultipleUsers), new[] { "client1" }, "Hi!").DefaultTimeout();
2710
await client.
SendInvocationAsync
("Echo", "foo").DefaultTimeout();
2823
var id = await client.
SendInvocationAsync
(nameof(MethodHub.ValueMethod)).DefaultTimeout();
2922
var id = await client.
SendInvocationAsync
(nameof(MethodHub.ValueMethod)).DefaultTimeout();
3038
_ = await client.
SendInvocationAsync
(nameof(LongRunningHub.LongRunningMethod)).DefaultTimeout();
3611
await client.
SendInvocationAsync
("Echo", "test");
3808
await client.
SendInvocationAsync
(nameof(MethodHub.ProtocolError)).DefaultTimeout();
3828
await client.
SendInvocationAsync
(nameof(ConnectionLifetimeHub.ProtocolErrorSelf)).DefaultTimeout();
3851
await client.
SendInvocationAsync
(nameof(ConnectionLifetimeHub.ProtocolErrorAll)).DefaultTimeout();
4149
await client.
SendInvocationAsync
("VoidMethod").DefaultTimeout();
4186
await client.
SendInvocationAsync
("VoidMethod").DefaultTimeout();
4390
var invocationId = await client.
SendInvocationAsync
(nameof(MethodHub.InvalidArgument)).DefaultTimeout();
5212
await client.
SendInvocationAsync
(nameof(MethodHub.Echo), new object[] { "t" }).DefaultTimeout();