27 references to TryRead
Microsoft.AspNetCore.SignalR.Tests (26)
DefaultHubLifetimeManagerTests.cs (5)
39var message = Assert.IsType<InvocationMessage>(client1.TryRead()); 76Assert.Null(client1.TryRead()); 172Assert.Null(client1.TryRead()); 215var message = Assert.IsType<InvocationMessage>(client1.TryRead()); 245var message = Assert.IsType<InvocationMessage>(client1.TryRead());
HubConnectionHandlerTests.cs (21)
162Assert.Null(client.TryRead()); 971Assert.Null(client.TryRead()); 1027var message = Assert.IsType<CloseMessage>(client.TryRead()); 1031Assert.Null(client.TryRead()); 1629Assert.Null(firstClient.TryRead()); 1674Assert.Null(firstClient.TryRead()); 1705Assert.Null(firstClient.TryRead()); 1708Assert.Null(secondClient.TryRead()); 1749Assert.Null(firstClient.TryRead()); 1752Assert.Null(secondClient.TryRead()); 1772Assert.Null(firstClient.TryRead()); 1802Assert.Null(firstClient.TryRead()); 1805Assert.Null(secondClient.TryRead()); 1823Assert.Null(firstClient.TryRead()); 2575Assert.IsType<CompletionMessage>(client2.TryRead()); 2576Assert.IsType<CloseMessage>(client2.TryRead()); 2577Assert.Null(client2.TryRead()); 3345Assert.Null(client.TryRead()); 3464Assert.Null(client.TryRead()); 3953var message = client.TryRead(); 3978var message = client.TryRead();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
244var message = TryRead(isHandshake);