37 references to DefaultTimeout
Microsoft.AspNetCore.SignalR.Specification.Tests (37)
HubLifetimeManagerTestBase.cs (21)
48
var message = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
53
message = Assert.IsType<InvocationMessage>(await client2.ReadAsync().
DefaultTimeout
());
81
var message = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
111
var message = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
142
var message = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
167
var message = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
190
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
196
var res = await resultTask.
DefaultTimeout
();
217
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
223
var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).
DefaultTimeout
();
247
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
252
manager.SetConnectionResultAsync(connection2.ConnectionId, CompletionMessage.WithError(invocation.InvocationId, "Error from client"))).
DefaultTimeout
();
259
var res = await resultTask.
DefaultTimeout
();
280
await Assert.ThrowsAsync<IOException>(() => manager1.InvokeConnectionAsync<int>("none", "Result", new object[] { "test" }, cancellationToken: default)).
DefaultTimeout
();
305
var invocation1 = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
306
var invocation2 = Assert.IsType<InvocationMessage>(await client2.ReadAsync().
DefaultTimeout
());
309
await Assert.ThrowsAnyAsync<Exception>(() => invoke2).
DefaultTimeout
();
313
Assert.Equal(3, await invoke1.
DefaultTimeout
());
337
var ex = await Assert.ThrowsAsync<IOException>(() => invoke1).
DefaultTimeout
();
359
var invocation1 = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
362
await Assert.ThrowsAsync<HubException>(() => invoke1).
DefaultTimeout
();
ScaleoutHubLifetimeManagerTests.cs (15)
32
var message = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
486
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
493
var res = await resultTask.
DefaultTimeout
();
517
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
524
var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).
DefaultTimeout
();
547
await Assert.ThrowsAsync<IOException>(() => manager1.InvokeConnectionAsync<int>("none", "Result", new object[] { "test" }, cancellationToken: default)).
DefaultTimeout
();
569
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
575
var ex = await Assert.ThrowsAsync<HubException>(() => invoke1).
DefaultTimeout
();
598
var invocation2 = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
601
var invocation1 = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
608
var res = await invoke1.
DefaultTimeout
();
610
res = await invoke2.
DefaultTimeout
();
626
var ex = await Assert.ThrowsAsync<IOException>(() => manager1.InvokeConnectionAsync<int>("1234", "Result", new object[] { "test" }, cancellationToken: default)).
DefaultTimeout
();
649
var invocation = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
656
var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).
DefaultTimeout
();
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
85
HandshakeResponseMessage = (HandshakeResponseMessage)await ReadAsync(true).
DefaultTimeout
();