24 references to On
Aspire.Hosting.Azure.Tests (1)
AzureSignalREmulatorFunctionalTest.cs (1)
113connection.On<string>("broadcast", message =>
ClientSample (1)
HubSample.cs (1)
69connection.On<string>("Send", Console.WriteLine);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (1)
696connection.On<string>("Echo", tcs.SetResult);
HubConnectionTests.Tracing.cs (1)
699connection.On<string>("Echo", echoTcs.SetResult);
Microsoft.AspNetCore.SignalR.Client.Tests (9)
HubConnectionTests.Extensions.cs (3)
42(hubConnection, tcs) => hubConnection.On<int>("Foo", 250hubConnection.On<int>("Foo", r => { receiveTcs.SetResult(r); }); 330hubConnection.On<int>("Foo", r => { receiveTcs.SetResult(r); });
HubConnectionTests.Protocol.cs (4)
478hubConnection.On<int>("Foo", (val) => 510var subscription = hubConnection.On<int>("Foo", (val) => 600hubConnection.On<string>("Echo", data => 627hubConnection.On<string>("Echo", data =>
TestServerTests.cs (2)
58connection.On<string>("Echo", (receivedMessage) => 103connection.On<string>("Echo", (receivedMessage) =>
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
RedisEndToEnd.cs (11)
68connection.On<string>("Echo", message => tcs.TrySetResult(message)); 70secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 101connection.On<string>("Echo", message => tcs.TrySetResult(message)); 103secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 133firstConnection.On<string>("Echo", message => tcs.TrySetResult(message)); 159connection.On<string>("Echo", message => tcs.TrySetResult(message)); 161secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 195connection.On<string>("Echo", message => tcs.TrySetResult(message)); 197secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 280connection.On<string>("SendToAll", message => tcs.TrySetResult(message)); 283secondConnection.On<string>("SendToAll", message => tcs2.TrySetResult(message));