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