22 references to On
Aspire.Hosting.Azure.Tests (1)
AzureSignalREmulatorFunctionalTest.cs (1)
115connection.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)
446hubConnection.On<int>("Foo", (val) => 478var subscription = hubConnection.On<int>("Foo", (val) => 568hubConnection.On<string>("Echo", data => 595hubConnection.On<string>("Echo", data =>
TestServerTests.cs (2)
58connection.On<string>("Echo", (receivedMessage) => 103connection.On<string>("Echo", (receivedMessage) =>
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (9)
RedisEndToEnd.cs (9)
70connection.On<string>("Echo", message => tcs.TrySetResult(message)); 72secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 103connection.On<string>("Echo", message => tcs.TrySetResult(message)); 105secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 135firstConnection.On<string>("Echo", message => tcs.TrySetResult(message)); 161connection.On<string>("Echo", message => tcs.TrySetResult(message)); 163secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message)); 197connection.On<string>("Echo", message => tcs.TrySetResult(message)); 199secondConnection.On<string>("Echo", message => tcs2.TrySetResult(message));