1160 references to DefaultTimeout
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
IIS.LongTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
InMemory.FunctionalTests (80)
BadHttpRequestTests.cs (1)
271
Assert.Empty(await client.Stream.ReadUntilEndAsync().
DefaultTimeout
());
ConnectionLimitTests.cs (1)
46
Assert.True(await lockedTcs.Task.
DefaultTimeout
());
Http2\Http2ConnectionTests.cs (10)
2006
withStreamId: 1).
DefaultTimeout
();
2011
withStreamId: 1).
DefaultTimeout
();
2016
withStreamId: 1).
DefaultTimeout
();
2021
withStreamId: 1).
DefaultTimeout
();
2026
withStreamId: 1).
DefaultTimeout
();
2077
withStreamId: 1).
DefaultTimeout
();
2084
withStreamId: 1).
DefaultTimeout
();
2091
withStreamId: 1).
DefaultTimeout
();
2100
withStreamId: 1).
DefaultTimeout
();
5676
var streamResponse = await tcs.Task.
DefaultTimeout
();
Http2\Http2KeepAliveTests.cs (16)
41
withStreamId: 0).
DefaultTimeout
();
70
withStreamId: 0).
DefaultTimeout
();
90
withStreamId: 0).
DefaultTimeout
();
129
withStreamId: 0).
DefaultTimeout
();
153
withStreamId: 0).
DefaultTimeout
();
162
withStreamId: 0).
DefaultTimeout
();
171
withStreamId: 0).
DefaultTimeout
();
194
withStreamId: 0).
DefaultTimeout
();
204
VerifyGoAway(await ReceiveFrameAsync().
DefaultTimeout
(), 0, Http2ErrorCode.INTERNAL_ERROR);
227
withStreamId: 0).
DefaultTimeout
();
235
withStreamId: 1).
DefaultTimeout
();
256
withStreamId: 1).
DefaultTimeout
();
301
withStreamId: 0).
DefaultTimeout
();
312
withStreamId: 1).
DefaultTimeout
();
356
withStreamId: 0).
DefaultTimeout
();
370
withStreamId: 1).
DefaultTimeout
();
Http2\Http2StreamTests.cs (8)
2998
withStreamId: 1).
DefaultTimeout
();
3003
withStreamId: 1).
DefaultTimeout
();
3008
withStreamId: 1).
DefaultTimeout
();
3021
withStreamId: 1).
DefaultTimeout
();
3251
var readTask = context.Request.Body.ReadAsync(new byte[100], 0, 100).
DefaultTimeout
();
3293
var read = await context.Request.Body.ReadAsync(new byte[100], 0, 100).
DefaultTimeout
();
3294
var readTask = context.Request.Body.ReadAsync(new byte[100], 0, 100).
DefaultTimeout
();
3460
thrownEx = await thrownExTask.
DefaultTimeout
();
Http2\Http2TestBase.cs (1)
790
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
Http3\Http3StreamTests.cs (1)
2078
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => readTrailersTcs.Task).
DefaultTimeout
();
HttpsConnectionMiddlewareTests.cs (7)
1105
Assert.Equal("HTTP/1.1 200 OK", await reader.ReadLineAsync().
DefaultTimeout
());
1106
Assert.Equal("Content-Length: 11", await reader.ReadLineAsync().
DefaultTimeout
());
1107
Assert.Equal("Connection: close", await reader.ReadLineAsync().
DefaultTimeout
());
1108
Assert.StartsWith("Date: ", await reader.ReadLineAsync().
DefaultTimeout
());
1109
Assert.Equal("", await reader.ReadLineAsync().
DefaultTimeout
());
1110
Assert.Equal("hello world", await reader.ReadLineAsync().
DefaultTimeout
());
1111
Assert.Null(await reader.ReadLineAsync().
DefaultTimeout
());
HttpsTests.cs (2)
383
Assert.Equal(0, await connection.Stream.ReadAsync(new byte[1], 0, 1).
DefaultTimeout
());
417
Assert.Equal(0, await connection.Stream.ReadAsync(new byte[1], 0, 1).
DefaultTimeout
());
KestrelMetricsTests.cs (9)
231
var notificationFeature = await getNotificationFeatureTcs.Task.
DefaultTimeout
();
574
responseMessage = await httpClient.SendAsync(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
580
var notificationFeature = await getNotificationFeatureTcs.Task.
DefaultTimeout
();
593
await responseStream.ReadUntilEndAsync().
DefaultTimeout
();
653
responseMessage = await httpClient.SendAsync(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
813
using var responseMessage = await httpClient.SendAsync(httpRequestMessage, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
819
var stream = await responseMessage.Content.ReadAsStreamAsync().
DefaultTimeout
();
820
await Assert.ThrowsAnyAsync<Exception>(() => stream.ReadUntilEndAsync()).
DefaultTimeout
();
925
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
LoggingConnectionMiddlewareTests.cs (1)
35
.
DefaultTimeout
();
RequestTests.cs (6)
121
await context.Request.Body.FillEntireBufferAsync(data, cts.Token).
DefaultTimeout
();
187
await stream.FillEntireBufferAsync(data).
DefaultTimeout
();
925
Assert.Equal(0, await httpContext.Request.Body.ReadAsync(new byte[1], 0, 1).
DefaultTimeout
());
970
var readResult = await httpContext.Request.BodyReader.ReadAsync().AsTask().
DefaultTimeout
();
1361
await duplexStream.FillEntireBufferAsync(data).
DefaultTimeout
();
1798
var length = await context.Request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
ResponseTests.cs (11)
161
var writeTask = context.Response.BodyWriter.WriteAsync(new Memory<byte>(data, 0, data.Length), cts.Token).AsTask().
DefaultTimeout
();
168
writeTask = context.Response.BodyWriter.WriteAsync(new Memory<byte>(data, 0, data.Length), cts.Token).AsTask().
DefaultTimeout
();
206
await Assert.ThrowsAsync<OperationCanceledException>(() => appTcs.Task).
DefaultTimeout
();
703
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => responseWriteTcs.Task).
DefaultTimeout
();
781
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => responseWriteTcs.Task).
DefaultTimeout
();
819
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => responseWriteTcs.Task).
DefaultTimeout
();
861
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => responseWriteTcs.Task).
DefaultTimeout
();
2260
Assert.Equal(0, await httpContext.Request.Body.ReadAsync(new byte[1], 0, 1).
DefaultTimeout
());
2853
var closeTask = await closeTaskTcs.Task.
DefaultTimeout
();
4714
var response = await reader.ReadToEndAsync().
DefaultTimeout
();
4757
var disposedStatusCode = await disposedTcs.Task.
DefaultTimeout
();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
518
return task.AsTask().
DefaultTimeout
();
src\Servers\Kestrel\shared\test\TestApp.cs (2)
22
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
52
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
TestTransport\InMemoryHttpClientSlim.cs (1)
96
var response = await reader.ReadToEndAsync().
DefaultTimeout
().ConfigureAwait(false);
UpgradeTests.cs (2)
77
var read = await context.Request.Body.ReadAsync(buffer, 0, 128).
DefaultTimeout
();
296
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await upgradeTcs.Task).
DefaultTimeout
();
Interop.FunctionalTests (173)
Http2\Http2RequestTests.cs (5)
72
var measurement = await measurementTcs.Task.
DefaultTimeout
();
133
var protocol = await protocolTcs.Task.
DefaultTimeout
();
214
var responseMessage = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
279
var (readData, trailers) = await longRunningTask.
DefaultTimeout
();
298
var responseMessage = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
Http2WebSocketInteropTests.cs (2)
75
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
134
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
Http3\Http3RequestTests.cs (55)
153
var responseMessage = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
261
var responseStream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
263
await responseStream.ReadAtLeastLengthAsync(TestData.Length, clientBufferSize).
DefaultTimeout
();
266
await responseStream.ReadAtLeastLengthAsync(TestData.Length, clientBufferSize).
DefaultTimeout
();
299
var responseTask = client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
301
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
306
var response = await responseTask.
DefaultTimeout
();
379
var responseTask = client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
381
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
387
var response = await responseTask.
DefaultTimeout
();
405
var data = await body.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
425
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
432
var response = await responseTask.
DefaultTimeout
();
439
var responseText = await response.Content.ReadAsStringAsync().
DefaultTimeout
();
469
await body.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
496
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
515
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => responseTask).
DefaultTimeout
();
519
var serverReadTask = await readAsyncTask.Task.
DefaultTimeout
();
521
var serverEx = await Assert.ThrowsAsync<IOException>(() => serverReadTask).
DefaultTimeout
();
567
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
571
var ex = await Assert.ThrowsAsync<HttpRequestException>(() => sendTask).
DefaultTimeout
();
586
var serverReadTask = await readAsyncTask.Task.
DefaultTimeout
();
587
var serverEx = await Assert.ThrowsAsync<ConnectionAbortedException>(() => serverReadTask).
DefaultTimeout
();
636
}).
DefaultTimeout
();
680
var ex = await Assert.ThrowsAnyAsync<HttpRequestException>(() => client.SendAsync(request, CancellationToken.None)).
DefaultTimeout
();
695
var serverWriteTask = await writeAsyncTask.Task.
DefaultTimeout
();
712
var data = await body.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
735
var response = await responseTask.
DefaultTimeout
();
740
var responseText = await response.Content.ReadAsStringAsync().
DefaultTimeout
();
1021
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
1029
var response = await responseTask.
DefaultTimeout
();
1031
var responseStream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
1034
var data = await responseStream.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
1044
var serverReadTask = await readAsyncTask.Task.
DefaultTimeout
();
1046
var serverEx = await Assert.ThrowsAsync<IOException>(() => serverReadTask).
DefaultTimeout
();
1118
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
1124
var response = await responseTask.
DefaultTimeout
();
1125
var responseStream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
1265
var response = await responseTask.
DefaultTimeout
();
1323
var responseStream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
1325
var data = await responseStream.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
1783
var connection = await connectionStartedTcs1.Task.
DefaultTimeout
();
1808
var response1 = await responseTask1.
DefaultTimeout
();
1892
var connection = await connectionStartedTcs.Task.
DefaultTimeout
();
1901
await Assert.ThrowsAsync<HttpRequestException>(() => responseTask).
DefaultTimeout
();
2046
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
2053
var response = await responseTask.
DefaultTimeout
();
2055
var httpContext = await requestStartedTcs.Task.
DefaultTimeout
();
2070
var readTask = await readAsyncTask.Task.
DefaultTimeout
();
2074
var ex = await Assert.ThrowsAnyAsync<Exception>(() => readTask).
DefaultTimeout
();
2146
var requestStream = await requestContent.GetStreamAsync().
DefaultTimeout
();
2153
var response = await responseTask.
DefaultTimeout
();
2155
var httpContext = await requestStartedTcs.Task.
DefaultTimeout
();
2189
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
2196
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
Http3\Http3TlsTests.cs (9)
61
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
107
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
149
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
202
var ex = await Assert.ThrowsAnyAsync<HttpRequestException>(() => sendTask).
DefaultTimeout
();
209
using var response = await sendTask.
DefaultTimeout
();
211
Assert.Equal("True", await response.Content.ReadAsStringAsync().
DefaultTimeout
());
248
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
327
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
492
var response = await client.SendAsync(request, CancellationToken.None).
DefaultTimeout
();
HttpClientHttp2InteropTests.cs (102)
60
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
64
var response = await client.GetAsync(url).
DefaultTimeout
();
84
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
92
using var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
95
await BulkContent.VerifyContent(await response.Content.ReadAsStreamAsync().
DefaultTimeout
());
123
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
137
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
170
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
186
using var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
189
await BulkContent.VerifyContent(await response.Content.ReadAsStreamAsync().
DefaultTimeout
());
236
read = await stream.ReadAsync(buffer, 0, buffer.Length, timer.Token).
DefaultTimeout
();
251
read = await stream.ReadAsync(buffer, 0, buffer.Length, timer.Token).
DefaultTimeout
();
290
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
299
var responseTask = client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
305
var stream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
312
Assert.Equal(0, await stream.ReadAsync(new byte[10], 0, 10).
DefaultTimeout
());
367
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
376
var responseTask = client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
385
Assert.Equal(0, await stream.ReadAsync(new byte[10], 0, 10).
DefaultTimeout
());
392
var lastData = await lastPacket.Task.
DefaultTimeout
();
417
var read = await streamReader.ReadToEndAsync().
DefaultTimeout
();
426
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
436
using var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
441
var read = await response.Content.ReadAsStringAsync().
DefaultTimeout
();
447
Assert.Equal("Hello World", await clientEcho.Task.
DefaultTimeout
());
531
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
535
var response = await client.GetAsync(url).
DefaultTimeout
();
563
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
567
var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
573
var responseBody = await response.Content.ReadAsStringAsync().
DefaultTimeout
();
595
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
599
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(url)).
DefaultTimeout
();
621
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
625
var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
628
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()).
DefaultTimeout
();
649
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
653
var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
655
var body = await response.Content.ReadAsStringAsync().
DefaultTimeout
();
678
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
682
var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
685
var responseBody = await response.Content.ReadAsStringAsync().
DefaultTimeout
();
716
var read = await streamReader.ReadToEndAsync().
DefaultTimeout
();
725
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
735
using var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
741
var responseEx = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync().
DefaultTimeout
());
744
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => clientEcho.Task.
DefaultTimeout
());
775
var read = await streamReader.ReadToEndAsync().
DefaultTimeout
();
784
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
792
var requestTask = client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
800
var responseEx = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync().
DefaultTimeout
());
803
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => clientEcho.Task.
DefaultTimeout
());
825
var ex = await Assert.ThrowsAsync<IOException>(() => readTask).
DefaultTimeout
();
834
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
849
await Assert.ThrowsAnyAsync<Exception>(() => requestTask).
DefaultTimeout
();
872
var ex = await Assert.ThrowsAsync<IOException>(() => readTask).
DefaultTimeout
();
881
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
894
await Assert.ThrowsAnyAsync<Exception>(() => requestTask).
DefaultTimeout
();
925
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
936
await Assert.ThrowsAsync<TaskCanceledException>(() => requestTask).
DefaultTimeout
();
966
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
972
var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
973
var responseStream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
1007
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1013
var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
1014
var responseStream = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
1050
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1064
var response = await requestTask.
DefaultTimeout
();
1103
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1108
var response = await client.GetAsync(url).
DefaultTimeout
();
1159
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1173
var response = await requestTask.
DefaultTimeout
();
1220
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1229
var requestTask = client.GetAsync(url).
DefaultTimeout
();
1233
var responses = await Task.WhenAll(tasks.ToList()).
DefaultTimeout
();
1281
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1290
var requestTask = client.PostAsync(url, new StringContent("Hello World")).
DefaultTimeout
();
1294
var responses = await Task.WhenAll(tasks.ToList()).
DefaultTimeout
();
1322
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1327
var responseBody = await client.GetStringAsync(url).
DefaultTimeout
();
1330
var response = await client.PostAsync(url, new ByteArrayContent(new byte[1024 * 18])).
DefaultTimeout
();
1355
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1361
var responseBody = await client.GetStringAsync(url).
DefaultTimeout
();
1370
var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.SendAsync(request).
DefaultTimeout
());
1396
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1401
var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(url)).
DefaultTimeout
();
1427
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1445
var response = await requestTask.
DefaultTimeout
();
1476
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1483
var response = await requestTask.
DefaultTimeout
();
1505
read = await context.Request.Body.ReadAsync(buffer, 0, buffer.Length).
DefaultTimeout
();
1511
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1533
var response0 = await requestTask0.
DefaultTimeout
();
1534
var response1 = await requestTask0.
DefaultTimeout
();
1562
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1568
var response = await client.SendAsync(request).
DefaultTimeout
();
1585
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1590
var response = await client.GetAsync(url + " !\"$%&'()*++,-./0123456789:;<>=@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`{|}~點看").
DefaultTimeout
();
1625
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1634
var response = await client.GetAsync(url).
DefaultTimeout
();
1670
using var host = await hostBuilder.StartAsync().
DefaultTimeout
();
1679
var response = await client.GetAsync(url).
DefaultTimeout
();
1727
var read = await stream.ReadAsync(responseBuffer, totalRead, responseBuffer.Length - totalRead).
DefaultTimeout
();
Microsoft.AspNetCore.Components.Server.Tests (14)
Circuits\RemoteJSDataStreamTest.cs (14)
38
var success = await RemoteJSDataStream.ReceiveData(_jsRuntime, streamId: unrecognizedGuid, chunkId: 0, chunk, error: null).
DefaultTimeout
();
58
var success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
();
86
var success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
();
109
var success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk: null, error: "some error").
DefaultTimeout
();
128
var ex = await Assert.ThrowsAsync<EndOfStreamException>(async () => await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
());
147
var ex = await Assert.ThrowsAsync<EndOfStreamException>(async () => await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
());
167
var ex = await Assert.ThrowsAsync<EndOfStreamException>(async () => await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
());
191
var ex = await Assert.ThrowsAsync<EndOfStreamException>(async () => await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 7, chunk, error: null).
DefaultTimeout
());
226
var unhandledExceptionResult = await unhandledExceptionRaisedTask.Task.
DefaultTimeout
();
237
var success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
();
265
var success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 0, chunk, error: null).
DefaultTimeout
();
269
success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 1, chunk, error: null).
DefaultTimeout
();
275
var unhandledExceptionResult = await unhandledExceptionRaisedTask.Task.
DefaultTimeout
();
286
success = await RemoteJSDataStream.ReceiveData(jsRuntime, streamId, chunkId: 2, chunk, error: null).
DefaultTimeout
();
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
MiddlewareTests.cs (2)
119
await Assert.ThrowsAsync<DivideByZeroException>(() => middleware.Invoke(new DefaultHttpContext())).
DefaultTimeout
();
164
await Assert.ThrowsAsync<DivideByZeroException>(() => middleware.Invoke(context)).
DefaultTimeout
();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (10)
ServerStreamingServerCallHandlerTests.cs (9)
66
var line1 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
73
var line2 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
110
var line1 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
114
var line2 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
152
var line1 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
156
var line2 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
193
var line = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
247
var line1 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
254
var line2 = await ReadLineAsync(pipe.Reader).
DefaultTimeout
();
UnaryServerCallHandlerTests.cs (1)
1269
var value = await tcs.Task.
DefaultTimeout
();
Microsoft.AspNetCore.Http.Connections.Tests (21)
HttpConnectionDispatcherTests.cs (7)
1577
var completedTask = await Task.WhenAny(request1, request2).
DefaultTimeout
();
1863
await connection.Transport.Output.WriteAsync(Encoding.UTF8.GetBytes("Unblock")).AsTask().
DefaultTimeout
();
1915
await connection.Transport.Output.WriteAsync(Encoding.UTF8.GetBytes("Unblock")).AsTask().
DefaultTimeout
();
2405
var webSocketMessage = await websocketFeature.Client.GetNextMessageAsync().
DefaultTimeout
();
2436
webSocketMessage = await websocketFeature.Client.GetNextMessageAsync().
DefaultTimeout
();
2479
var webSocketMessage = await websocketFeature.Client.GetNextMessageAsync().
DefaultTimeout
();
2511
webSocketMessage = await websocketFeature.Client.GetNextMessageAsync().
DefaultTimeout
();
LongPollingTests.cs (4)
34
await poll.ProcessRequestAsync(context, context.RequestAborted).
DefaultTimeout
();
54
await poll.ProcessRequestAsync(context, cts.Token).
DefaultTimeout
();
78
await poll.ProcessRequestAsync(context, context.RequestAborted).
DefaultTimeout
();
104
await poll.ProcessRequestAsync(context, context.RequestAborted).
DefaultTimeout
();
MapConnectionHandlerTests.cs (1)
405
var result = await client.ReceiveAsync(new ArraySegment<byte>(new byte[1024]), CancellationToken.None).
DefaultTimeout
();
ServerSentEventsTests.cs (2)
78
await task.
DefaultTimeout
();
103
await task.
DefaultTimeout
();
WebSocketsTests.cs (7)
164
await client.
DefaultTimeout
();
189
var clientSummary = await client.
DefaultTimeout
();
296
_ = await client.
DefaultTimeout
();
337
_ = await client.
DefaultTimeout
();
391
_ = await client.
DefaultTimeout
();
393
await transport.
DefaultTimeout
();
414
var messages = await client.
DefaultTimeout
();
Microsoft.AspNetCore.InternalTesting.Tests (1)
TaskExtensionsTest.cs (1)
60
await Task.FromResult(true).
DefaultTimeout
();
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
178
await Assert.ThrowsAsync<InvalidOperationException>(() => middleware.Invoke(context)).
DefaultTimeout
();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
Http2Tests.cs (7)
687
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
726
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
773
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
825
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
879
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
928
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
978
Assert.Equal(0, await appResult.Task.
DefaultTimeout
());
src\Shared\Http2cat\Http2Utilities.cs (1)
405
await writableBuffer.FlushAsync().AsTask().
DefaultTimeout
();
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (3)
DelegateOutOfProcTests.cs (3)
46
var deploymentResult = await deployer.DeployAsync().
DefaultTimeout
();
49
var responseString = await deploymentResult.HttpClient.GetStringAsync("").
DefaultTimeout
();
65
responseString = await client.GetStringAsync(delegatorAddress).
DefaultTimeout
();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
MessageBodyTests.cs (1)
350
Assert.Equal(5, await readTask.
DefaultTimeout
());
src\Servers\Kestrel\shared\test\TestApp.cs (2)
22
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
52
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (46)
QuicConnectionContextTests.cs (10)
39
await using var serverConnection = await acceptTask.
DefaultTimeout
();
63
await using var serverConnection = await acceptTask.
DefaultTimeout
();
89
await using var serverConnection = await acceptTask.
DefaultTimeout
();
130
await using var serverConnection = await acceptTask.
DefaultTimeout
();
138
var ex = await Assert.ThrowsAsync<ConnectionResetException>(() => acceptStreamTask.AsTask()).
DefaultTimeout
();
222
var data = await clientStream.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
301
var ex = await Assert.ThrowsAsync<ConnectionResetException>(() => acceptTask).
DefaultTimeout
();
426
var ex = await Assert.ThrowsAsync<ConnectionResetException>(() => serverStream.Transport.Input.ReadAsync().AsTask()).
DefaultTimeout
();
475
var serverEx = await Assert.ThrowsAsync<ConnectionResetException>(() => serverStream.Transport.Input.ReadAsync().AsTask()).
DefaultTimeout
();
487
var clientEx = await Assert.ThrowsAsync<QuicException>(() => clientStream.ReadAsync(buffer).AsTask()).
DefaultTimeout
();
QuicConnectionListenerTests.cs (10)
56
var serverConnection = await acceptTask.
DefaultTimeout
();
77
var serverConnection1 = await acceptTask1.
DefaultTimeout
();
94
var serverFailureLog = await serverFailureLogTask.
DefaultTimeout
();
102
var serverConnection2 = await acceptTask2.
DefaultTimeout
();
126
var serverStreamTask = serverConnection.AcceptAsync().
DefaultTimeout
();
133
var serverStream = await serverStreamTask.
DefaultTimeout
();
204
Assert.Null(await acceptTask.AsTask().
DefaultTimeout
());
222
Assert.Null(await acceptTask.AsTask().
DefaultTimeout
());
257
var ex = await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.ConnectAsync(options).AsTask()).
DefaultTimeout
();
404
await Assert.ThrowsAsync<AuthenticationException>(() => clientConnectionTask.AsTask()).
DefaultTimeout
();
QuicStreamContextTests.cs (10)
136
await readTask.
DefaultTimeout
();
207
var data = await readingTask.
DefaultTimeout
();
275
var ex = await Assert.ThrowsAsync<ConnectionResetException>(() => serverStream.Transport.Input.ReadAsync().AsTask()).
DefaultTimeout
();
353
var ex = await Assert.ThrowsAsync<ConnectionResetException>(() => serverStream.Transport.Input.ReadAsync().AsTask()).
DefaultTimeout
();
417
var data = await clientStream.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
458
var data = await clientStream.ReadAtLeastLengthAsync(TestData.Length).
DefaultTimeout
();
466
var ex = await Assert.ThrowsAsync<QuicException>(() => clientStream.ReadAsync(new byte[1024]).AsTask()).
DefaultTimeout
();
517
var data = await clientStream.ReadUntilEndAsync().
DefaultTimeout
();
521
var clientEx = await Assert.ThrowsAsync<QuicException>(() => clientStream.WriteAsync(data).AsTask()).
DefaultTimeout
();
526
var serverEx = await Assert.ThrowsAsync<ConnectionAbortedException>(() => serverReadTask).
DefaultTimeout
();
QuicTransportFactoryTests.cs (3)
32
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => quicTransportFactory.BindAsync(new IPEndPoint(0, 0), features: null, cancellationToken: CancellationToken.None).AsTask()).
DefaultTimeout
();
49
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => quicTransportFactory.BindAsync(new IPEndPoint(0, 0), features: features, cancellationToken: CancellationToken.None).AsTask()).
DefaultTimeout
();
72
await quicTransportFactory.BindAsync(new IPEndPoint(0, 0), features: features, cancellationToken: CancellationToken.None).AsTask().
DefaultTimeout
();
WebHostTests.cs (13)
248
var response1 = await client.SendAsync(request1).
DefaultTimeout
();
253
var responseText1 = await response1.Content.ReadAsStringAsync().
DefaultTimeout
();
262
var response2 = await client.SendAsync(request2).
DefaultTimeout
();
267
var responseText2 = await response2.Content.ReadAsStringAsync().
DefaultTimeout
();
319
var response1 = await client.SendAsync(request1).
DefaultTimeout
();
324
var responseText1 = await response1.Content.ReadAsStringAsync().
DefaultTimeout
();
332
var response2 = await client.SendAsync(request2).
DefaultTimeout
();
337
var responseText2 = await response2.Content.ReadAsStringAsync().
DefaultTimeout
();
357
var response1 = await client.SendAsync(request1).
DefaultTimeout
();
362
var responseText1 = await response1.Content.ReadAsStringAsync().
DefaultTimeout
();
369
var response2 = await client.SendAsync(request2).
DefaultTimeout
();
374
var responseText2 = await response2.Content.ReadAsStringAsync().
DefaultTimeout
();
409
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => host.StartAsync()).
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (104)
HubConnectionTests.cs (86)
106
var result = await connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)).
DefaultTimeout
();
143
var ex = await Assert.ThrowsAnyAsync<Exception>(() => connection.StartAsync()).
DefaultTimeout
();
200
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
228
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), null).
DefaultTimeout
();
257
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
261
result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
290
var connectionIdFromServer = await connection.InvokeAsync<string>(nameof(TestHub.GetCallerConnectionId)).
DefaultTimeout
();
295
connectionIdFromServer = await connection.InvokeAsync<string>(nameof(TestHub.GetCallerConnectionId)).
DefaultTimeout
();
348
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
358
result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
387
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo).ToLowerInvariant(), originalMessage).
DefaultTimeout
();
423
helloWorldTcs.SetResult(await connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)).
DefaultTimeout
());
428
Assert.Equal(originalMessage, await echoTcs.Task.
DefaultTimeout
());
429
Assert.Equal("Hello World!", await helloWorldTcs.Task.
DefaultTimeout
());
700
Assert.Equal(originalMessage, await tcs.Task.
DefaultTimeout
());
769
var channel = await connection.StreamAsChannelAsync<int>("Stream", 5).
DefaultTimeout
();
770
var results = await channel.ReadAndCollectAllAsync().
DefaultTimeout
();
800
var channel = await connection.StreamAsChannelAsync<string>("StreamEcho", channelWriter.Reader).
DefaultTimeout
();
803
Assert.Equal("1", await channel.ReadAsync().AsTask().
DefaultTimeout
());
805
Assert.Equal("2", await channel.ReadAsync().AsTask().
DefaultTimeout
());
808
var results = await channel.ReadAndCollectAllAsync().
DefaultTimeout
();
848
var channel = await connection.StreamAsChannelAsync<string>("StreamEcho", stream).
DefaultTimeout
();
850
Assert.Equal("A", await channel.ReadAsync().AsTask().
DefaultTimeout
());
851
Assert.Equal("B", await channel.ReadAsync().AsTask().
DefaultTimeout
());
852
Assert.Equal("C", await channel.ReadAsync().AsTask().
DefaultTimeout
());
853
Assert.Equal("D", await channel.ReadAsync().AsTask().
DefaultTimeout
());
855
var results = await channel.ReadAndCollectAllAsync().
DefaultTimeout
();
896
var channel = await connection.StreamAsChannelAsync<int>("StreamEchoInt", stream, cts.Token).
DefaultTimeout
();
979
var channel = await connection.StreamAsChannelAsync<int>("Stream", 1000, cts.Token).
DefaultTimeout
();
982
await channel.WaitToReadAsync().AsTask().
DefaultTimeout
();
986
var results = await channel.ReadAndCollectAllAsync(suppressExceptions: true).
DefaultTimeout
();
1021
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => connection.StreamAsChannelAsync<int>("Stream", 5, cts.Token).
DefaultTimeout
());
1052
var channel = await connection.StreamAsChannelAsync<int>("StreamException").
DefaultTimeout
();
1054
var ex = await Assert.ThrowsAsync<HubException>(() => channel.ReadAndCollectAllAsync().
DefaultTimeout
());
1081
var ex = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync("!@#$%")).
DefaultTimeout
();
1108
var ex = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync("!@#$%", 10, "test")).
DefaultTimeout
();
1135
var ex = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync("Echo", "p1", 42)).
DefaultTimeout
();
1162
var ex = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync("Echo", new[] { 42 })).
DefaultTimeout
();
1190
var ex = await Assert.ThrowsAsync<HubException>(() => channel.ReadAndCollectAllAsync().
DefaultTimeout
());
1218
var ex = await Assert.ThrowsAsync<HubException>(() => channel.ReadAndCollectAllAsync().
DefaultTimeout
());
1246
var ex = await Assert.ThrowsAsync<HubException>(() => channel.ReadAndCollectAllAsync().
DefaultTimeout
());
1272
var channel = await connection.StreamAsChannelAsync<int>("HelloWorld").
DefaultTimeout
();
1273
var ex = await Assert.ThrowsAsync<HubException>(() => channel.ReadAndCollectAllAsync()).
DefaultTimeout
();
1300
var ex = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync("Stream", 3)).
DefaultTimeout
();
1326
var channel = await connection.StreamAsChannelAsync<int>("StreamBroken").
DefaultTimeout
();
1327
var ex = await Assert.ThrowsAsync<HubException>(() => channel.ReadAndCollectAllAsync()).
DefaultTimeout
();
1372
var exception = await closedTcs.Task.
DefaultTimeout
();
1375
var hubException = await Assert.ThrowsAsync<HubException>(() => result).
DefaultTimeout
();
1423
var result = connection.InvokeAsync<string>(nameof(TestHub.GetUnserializableObject)).
DefaultTimeout
();
1426
var exception = await closedTcs.Task.
DefaultTimeout
();
1429
var hubException = await Assert.ThrowsAsync<HubException>(() => result).
DefaultTimeout
();
1463
var hubException = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync<int>("StreamEcho", new List<string> { "1", "2" }).
DefaultTimeout
());
1493
var message = await hubConnection.InvokeAsync<string>(nameof(TestHub.Echo), "Hello, World!").
DefaultTimeout
();
1548
var message = await hubConnection.InvokeAsync<string>(nameof(TestHub.Echo), "Hello, World!").
DefaultTimeout
();
1580
var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "X-test", "X-42" }).
DefaultTimeout
();
1611
var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).
DefaultTimeout
();
1652
var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).
DefaultTimeout
();
1687
var headerValues = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new[] { "User-Agent" }).
DefaultTimeout
();
1727
var cookieValue = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetCookieValue), "Foo").
DefaultTimeout
();
1778
var echoResponse = await hubConnection.InvokeAsync<string>(nameof(TestHub.Echo), "Foo").
DefaultTimeout
();
1837
var echoResponse = await hubConnection.InvokeAsync<string>(nameof(HubWithAuthorization2.Echo), "Foo").
DefaultTimeout
();
1944
var headerResponse = await hubConnection.InvokeAsync<string[]>(nameof(TestHub.GetHeaderValues), new string[] { "Authorization" }).
DefaultTimeout
();
1980
var cookieValue = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetCookieValue), "fromNegotiate").
DefaultTimeout
();
2008
var features = await hubConnection.InvokeAsync<JsonElement[]>(nameof(TestHub.GetIHttpConnectionFeatureProperties)).
DefaultTimeout
();
2047
var userIdentifier = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetUserIdentifier)).
DefaultTimeout
();
2077
var transport = await hubConnection.InvokeAsync<HttpTransportType>(nameof(TestHub.GetActiveTransportName)).
DefaultTimeout
();
2122
await pollTracker.ActivePoll.
DefaultTimeout
();
2176
var newConnectionId = await reconnectedTcs.Task.
DefaultTimeout
();
2180
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), echoMessage).
DefaultTimeout
();
2236
var newConnectionId = await reconnectedTcs.Task.
DefaultTimeout
();
2240
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), echoMessage).
DefaultTimeout
();
2302
var newConnectionId = await reconnectedTcs.Task.
DefaultTimeout
();
2306
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), echoMessage).
DefaultTimeout
();
2388
var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).
DefaultTimeout
();
2441
var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).
DefaultTimeout
();
2484
var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).
DefaultTimeout
();
2534
var httpProtocol = await hubConnection.InvokeAsync<string>(nameof(TestHub.GetHttpProtocol)).
DefaultTimeout
();
2582
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
2590
var resultTask = connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
2650
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
2660
result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
2787
Assert.Null(await closedTcs.Task.
DefaultTimeout
());
2823
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), new string('x', 500)).
DefaultTimeout
();
2825
var resultTask = connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
2893
var result = await connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
2901
var resultTask = connection.InvokeAsync<string>(nameof(TestHub.Echo), originalMessage).
DefaultTimeout
();
HubConnectionTests.Tracing.cs (15)
81
var resultTask = connection.InvokeAsync<string>(nameof(TestHub.HelloWorld)).
DefaultTimeout
();
110
var result = await resultTask.
DefaultTimeout
();
138
var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 4).
DefaultTimeout
();
277
clientActivity = await clientActivityTcs.Task.
DefaultTimeout
();
310
var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).
DefaultTimeout
();
439
var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).
DefaultTimeout
();
440
var clientActivity = await clientActivityTcs.Task.
DefaultTimeout
();
536
var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).
DefaultTimeout
();
537
var clientActivity = await clientActivityTcs.Task.
DefaultTimeout
();
609
async () => await connection.InvokeAsync<string>(nameof(TestHub.InvokeException))).
DefaultTimeout
();
631
var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).
DefaultTimeout
();
632
var clientActivity = await clientActivityTcs.Task.
DefaultTimeout
();
708
await echoTcs.Task.
DefaultTimeout
();
730
var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).
DefaultTimeout
();
731
var clientActivity = await clientActivityTcs.Task.
DefaultTimeout
();
HubProtocolVersionTests.cs (3)
51
var result = await connection.InvokeAsync<string>(nameof(VersionHub.Echo), "Hello World!").
DefaultTimeout
();
84
var result = await connection.InvokeAsync<string>(nameof(VersionHub.Echo), "Hello World!").
DefaultTimeout
();
183
"Unable to complete handshake with the server due to an error: The server does not support version 2147483647 of the 'json' protocol.").
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Client.Tests (155)
HttpConnectionTests.ConnectionLifecycle.cs (6)
70
async () => await connection.StartAsync()).
DefaultTimeout
();
157
var ex = await Assert.ThrowsAsync<AggregateException>(() => connection.StartAsync()).
DefaultTimeout
();
422
await Assert.ThrowsAsync<TaskCanceledException>(() => startTask).
DefaultTimeout
();
447
var ex = await Assert.ThrowsAsync<AggregateException>(async () => await connection.StartAsync(cts.Token)).
DefaultTimeout
();
473
await Assert.ThrowsAsync<TaskCanceledException>(async () => await connection.StartAsync(new CancellationToken(canceled: true))).
DefaultTimeout
();
504
var ex = await Assert.ThrowsAsync<AggregateException>(async () => await connection.StartAsync()).
DefaultTimeout
();
HttpConnectionTests.cs (1)
202
var headerWasFound = await negotiateUrlTcs.Task.
DefaultTimeout
();
HttpConnectionTests.Negotiate.cs (1)
90
Assert.Equal(expectedNegotiate, await negotiateUrlTcs.Task.
DefaultTimeout
());
HttpConnectionTests.Transport.cs (1)
248
Assert.Equal(data, await sendTcs.Task.
DefaultTimeout
());
HubConnectionTests.ConnectionLifecycle.cs (11)
73
await Assert.ThrowsAsync<InvalidOperationException>(() => secondStart).
DefaultTimeout
();
199
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => method(connection)).
DefaultTimeout
();
377
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => connection.SendAsync("Foo")).
DefaultTimeout
();
412
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => connection.SendAsync("Foo")).
DefaultTimeout
();
450
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => connection.SendAsync("Foo")).
DefaultTimeout
();
480
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => targetTask).
DefaultTimeout
();
516
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => hubConnection.StartAsync()).
DefaultTimeout
();
543
await Assert.ThrowsAsync<TaskCanceledException>(() => hubConnection.StartAsync(new CancellationToken(canceled: true))).
DefaultTimeout
();
590
await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
594
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => startTask).
DefaultTimeout
();
629
var exception = await closedEventTcs.Task.
DefaultTimeout
();
HubConnectionTests.cs (37)
40
await Assert.ThrowsAsync<InvalidOperationException>(async () => await hubConnection.InvokeAsync<int>("test").
DefaultTimeout
());
134
var invokeTask = hubConnection.InvokeAsync<int>("testMethod").
DefaultTimeout
();
156
var invokeTask = hubConnection.InvokeAsync<int>("testMethod").
DefaultTimeout
();
175
var invokeTask = hubConnection.InvokeAsync<int>("testMethod", cancellationToken: cts.Token).
DefaultTimeout
();
192
hubConnection.InvokeAsync<int>("testMethod", cancellationToken: new CancellationToken(canceled: true)).
DefaultTimeout
());
197
Assert.Equal("{\"type\":7}", await connection.ReadSentTextMessageAsync().
DefaultTimeout
());
216
Assert.Equal("{\"type\":7}", await connection.ReadSentTextMessageAsync().
DefaultTimeout
());
253
hubConnection.StreamAsChannelAsync<int>("testMethod", cancellationToken: new CancellationToken(canceled: true)).
DefaultTimeout
());
258
Assert.Equal("{\"type\":7}", await connection.ReadSentTextMessageAsync().
DefaultTimeout
());
277
Assert.Equal("{\"type\":7}", await connection.ReadSentTextMessageAsync().
DefaultTimeout
());
296
var item = await connection.ReadSentJsonAsync().
DefaultTimeout
();
327
var item = await connection.ReadSentJsonAsync().
DefaultTimeout
();
336
item = await connection.ReadSentJsonAsync().
DefaultTimeout
();
341
await Assert.ThrowsAsync<TaskCanceledException>(async () => await e.MoveNextAsync()).
DefaultTimeout
();
367
var exception = Assert.IsType<TimeoutException>(await closeTcs.Task.
DefaultTimeout
());
441
var invocation = await connection.ReadSentJsonAsync().
DefaultTimeout
();
450
var item = await connection.ReadSentJsonAsync().
DefaultTimeout
();
457
var completion = await connection.ReadSentJsonAsync().
DefaultTimeout
();
463
var result = await invokeTask.
DefaultTimeout
();
481
var invocation = await connection.ReadSentJsonAsync().
DefaultTimeout
();
491
var received = await connection.ReadSentJsonAsync().
DefaultTimeout
();
512
var invocation = await connection.ReadSentJsonAsync().
DefaultTimeout
();
522
var received = await connection.ReadSentJsonAsync().
DefaultTimeout
();
529
var completion = await connection.ReadSentJsonAsync().
DefaultTimeout
();
536
var result = await invokeTask.
DefaultTimeout
();
557
var invokeMessage = await connection.ReadSentJsonAsync().
DefaultTimeout
();
569
var complete = await connection.ReadSentJsonAsync().
DefaultTimeout
();
589
var invokeMessage = await connection.ReadSentJsonAsync().
DefaultTimeout
();
595
var complete = await connection.ReadSentJsonAsync().
DefaultTimeout
();
614
var invokeMessage = await connection.ReadSentJsonAsync().
DefaultTimeout
();
629
await Assert.ThrowsAsync<TaskCanceledException>(() => invokeTask).
DefaultTimeout
();
647
var invocation = await connection.ReadSentJsonAsync().
DefaultTimeout
();
653
var result = await invokeTask.
DefaultTimeout
();
716
await hubConnection.InvokeAsync<string>("Echo", msg).
DefaultTimeout
();
738
await connection.ReadSentJsonAsync().
DefaultTimeout
();
908
var exception = await closedEventTcs.Task.
DefaultTimeout
();
940
var exception = await closedEventTcs.Task.
DefaultTimeout
();
HubConnectionTests.Extensions.cs (6)
233
await handlerTcs.Task.
DefaultTimeout
();
271
Assert.Equal(42, await receiveTcs.Task.
DefaultTimeout
());
313
Assert.Equal(42, await receiveTcs.Task.
DefaultTimeout
());
351
Assert.Equal(42, await receiveTcs.Task.
DefaultTimeout
());
393
Assert.Equal(42, await receiveTcs.Task.
DefaultTimeout
());
693
await handlerTcs.Task.
DefaultTimeout
();
HubConnectionTests.Protocol.cs (38)
28
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
52
var handshakeMessage = await connection.ReadHandshakeAndSendResponseAsync().
DefaultTimeout
();
78
await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
83
var ex = await Assert.ThrowsAsync<InvalidDataException>(() => startTask).
DefaultTimeout
();
106
var message = await connection.ReadHandshakeAndSendResponseAsync(56).
DefaultTimeout
();
128
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
161
var closeException = await closedTcs.Task.
DefaultTimeout
();
190
var closeException = await closedTcs.Task.
DefaultTimeout
();
209
var channel = await hubConnection.StreamAsChannelAsync<object>("Foo").
DefaultTimeout
();
211
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
258
var channel = await hubConnection.StreamAsChannelAsync<int>("Foo").
DefaultTimeout
();
262
Assert.Empty(await channel.ReadAndCollectAllAsync().
DefaultTimeout
());
284
Assert.Equal(42, await invokeTask.
DefaultTimeout
());
306
var ex = await Assert.ThrowsAsync<HubException>(() => invokeTask).
DefaultTimeout
();
325
var channel = await hubConnection.StreamAsChannelAsync<string>("Foo").
DefaultTimeout
();
329
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => channel.ReadAndCollectAllAsync()).
DefaultTimeout
();
348
var channel = await hubConnection.StreamAsChannelAsync<int>("Foo").
DefaultTimeout
();
352
var ex = await Assert.ThrowsAsync<HubException>(async () => await channel.ReadAndCollectAllAsync()).
DefaultTimeout
();
375
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => invokeTask).
DefaultTimeout
();
394
var channel = await hubConnection.StreamAsChannelAsync<string>("Foo").
DefaultTimeout
();
401
var notifications = await channel.ReadAndCollectAllAsync().
DefaultTimeout
();
427
Assert.Equal(args, await handlerCalled.Task.
DefaultTimeout
());
456
var ex = Assert.ThrowsAsync<TimeoutException>(async () => await handlerTask.
DefaultTimeout
(2000));
490
var ex = Assert.ThrowsAsync<TimeoutException>(async () => await handlerTask.
DefaultTimeout
(2000));
577
var response = await tcs.Task.
DefaultTimeout
();
612
var response = await tcs.Task.
DefaultTimeout
();
636
var firstPing = await connection.ReadSentTextMessageAsync(ignorePings: false).
DefaultTimeout
();
639
var secondPing = await connection.ReadSentTextMessageAsync(ignorePings: false).
DefaultTimeout
();
667
var messages = await connection.ReadAllSentMessagesAsync(ignorePings: false).
DefaultTimeout
();
691
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
738
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
766
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
795
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
817
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
842
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
867
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
892
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
923
var invokeMessage = await connection.ReadSentTextMessageAsync().
DefaultTimeout
();
HubConnectionTests.Reconnect.cs (34)
64
Assert.Same(exception, await closedErrorTcs.Task.
DefaultTimeout
());
158
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
167
Assert.Same(reconnectedConnectionId, await reconnectedConnectionIdTcs.Task.
DefaultTimeout
());
176
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
255
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
264
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
350
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
355
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
432
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
438
await reconnectedConnectionIdTcs.Task.
DefaultTimeout
();
450
Assert.Same(secondException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
456
await reconnectedConnectionIdTcs.Task.
DefaultTimeout
();
464
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
535
var reconnectingException = await reconnectingErrorTcs.Task.
DefaultTimeout
();
544
await reconnectedConnectionIdTcs.Task.
DefaultTimeout
();
548
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
609
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
664
await closedErrorTcs.Task.
DefaultTimeout
();
719
Assert.Same(firstException, await Assert.ThrowsAsync<Exception>(() => startTask).
DefaultTimeout
());
792
await currentTestConnection.ReadHandshakeAndSendResponseAsync().
DefaultTimeout
();
799
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
817
await currentTestConnection.ReadHandshakeAndSendResponseAsync().
DefaultTimeout
();
818
await reconnectedConnectionIdTcs.Task.
DefaultTimeout
();
826
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
899
await currentTestConnection.ReadHandshakeAndSendResponseAsync().
DefaultTimeout
();
906
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
914
await currentTestConnection.ReadSentTextMessageAsync().
DefaultTimeout
();
937
await currentTestConnection.ReadHandshakeAndSendResponseAsync().
DefaultTimeout
();
938
await reconnectedConnectionIdTcs.Task.
DefaultTimeout
();
946
var closeError = await closedErrorTcs.Task.
DefaultTimeout
();
1026
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
1036
Assert.IsType<OperationCanceledException>(await closedErrorTcs.Task.
DefaultTimeout
());
1103
Assert.Same(firstException, await reconnectingErrorTcs.Task.
DefaultTimeout
());
1111
Assert.IsType<OperationCanceledException>(await closedErrorTcs.Task.
DefaultTimeout
());
HubConnectionTests.Tracing.cs (7)
43
var invokeMessage = await connection.ReadSentJsonAsync().
DefaultTimeout
();
78
var channel = await hubConnection.StreamAsChannelAsync<object>("Foo").
DefaultTimeout
();
80
var invokeMessage = await connection.ReadSentJsonAsync().
DefaultTimeout
();
118
var invokeMessage = await connection.ReadSentJsonAsync().
DefaultTimeout
();
157
await connection.ReadSentJsonAsync().
DefaultTimeout
();
196
var clientActivity = await clientActivityTcs.Task.
DefaultTimeout
();
206
await connection.ReadSentJsonAsync().
DefaultTimeout
();
LongPollingTransportTests.cs (6)
143
var data = await longPollingTransport.Input.ReadAllAsync().
DefaultTimeout
();
309
var exception = await Assert.ThrowsAsync<HttpRequestException>(async () => await longPollingTransport.Input.ReadAllAsync().
DefaultTimeout
());
355
await longPollingTransport.Input.ReadAllAsync().
DefaultTimeout
();
388
await longPollingTransport.Input.ReadAllAsync().
DefaultTimeout
();
670
var completedTask = await Task.WhenAny(completionTcs.Task, longPollingTransport.Running).
DefaultTimeout
();
748
var response = await responseTaskCompletionSource.Task.
DefaultTimeout
();
SendUtilsTests.cs (1)
46
var response = await responseTaskCompletionSource.Task.
DefaultTimeout
();
ServerSentEventsTransportTests.cs (6)
107
var message = await sseTransport.Input.ReadSingleAsync().
DefaultTimeout
();
155
await sseTransport.Input.ReadAllAsync().
DefaultTimeout
();
214
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => sseTransport.Input.ReadAllAsync().
DefaultTimeout
());
288
var message = await sseTransport.Input.ReadSingleAsync().
DefaultTimeout
();
437
var response = await responseTaskCompletionSource.Task.
DefaultTimeout
();
489
var message = await sseTransport.Input.ReadAllAsync().
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (12)
RedisEndToEnd.cs (10)
49
var str = await connection.InvokeAsync<string>("Echo", "Hello, World!").
DefaultTimeout
();
82
Assert.Equal("Hello, World!", await tcs.Task.
DefaultTimeout
());
83
Assert.Equal("Hello, World!", await tcs2.Task.
DefaultTimeout
());
110
Assert.Equal("Hello, World!", await tcs.Task.
DefaultTimeout
());
111
Assert.Equal("Hello, World!", await tcs2.Task.
DefaultTimeout
());
141
Assert.Equal("Hello, World!", await tcs.Task.
DefaultTimeout
());
172
Assert.Equal("Hello, World!", await tcs2.Task.
DefaultTimeout
());
176
Assert.Equal("Hello, World!", await tcs.Task.
DefaultTimeout
());
204
Assert.Equal("Hello, World!", await tcs2.Task.
DefaultTimeout
());
208
Assert.Equal("Hello, World!", await tcs.Task.
DefaultTimeout
());
RedisHubLifetimeManagerTests.cs (2)
72
var message = Assert.IsType<InvocationMessage>(await client2.ReadAsync().
DefaultTimeout
());
116
var ex = await Assert.ThrowsAsync<ApplicationException>(() => manager.OnConnectedAsync(connection)).
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Tests (475)
ClientProxyTests.cs (1)
216
var ex = await Assert.ThrowsAsync<NotImplementedException>(async () => await proxy.InvokeAsync<int>("method", cancellationToken: default)).
DefaultTimeout
();
EndToEndTests.cs (6)
108
var result = await ws.ReceiveAsync(buffer, CancellationToken.None).
DefaultTimeout
();
116
result = await ws.ReceiveAsync(buffer, CancellationToken.None).
DefaultTimeout
();
147
var result = await ws.ReceiveAsync(buffer, CancellationToken.None).
DefaultTimeout
();
155
result = await ws.ReceiveAsync(buffer, CancellationToken.None).
DefaultTimeout
();
293
Assert.Equal(message, Encoding.UTF8.GetString(await connection.Transport.Input.ReadAsync(bytes.Length).
DefaultTimeout
()));
344
var receivedData = await connection.Transport.Input.ReadAsync(bytes.Length).
DefaultTimeout
();
HubConnectionHandlerTests.Activity.cs (21)
52
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
57
await client.SendInvocationAsync(nameof(MethodHub.Echo), "test").
DefaultTimeout
();
59
var completionMessage = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
66
await client.SendInvocationAsync("RenamedMethod").
DefaultTimeout
();
67
Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
72
await client.SendInvocationAsync(nameof(MethodHub.ActivityMethod)).
DefaultTimeout
();
73
Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
127
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
139
await client.SendInvocationAsync(nameof(MethodHub.Echo), headers, "test").
DefaultTimeout
();
141
var completionMessage = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
198
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
203
_ = await client.StreamAsync(nameof(StreamingHub.CounterChannel), 3).
DefaultTimeout
();
208
_ = await client.StreamAsync("RenamedCounterChannel", 3).
DefaultTimeout
();
257
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
269
_ = await client.StreamAsync(nameof(StreamingHub.CounterChannel), streamIds: null, headers: headers, 3).
DefaultTimeout
();
328
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
375
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
427
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
429
_ = await client.StreamAsync(nameof(StreamingHub.ExceptionAsyncEnumerable)).
DefaultTimeout
();
478
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
480
_ = await client.InvokeAsync(nameof(MethodHub.MethodThatThrows)).
DefaultTimeout
();
HubConnectionHandlerTests.ClientResult.cs (67)
23
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
25
var invocationId = await client.SendHubMessageAsync(new InvocationMessage("1", nameof(MethodHub.GetClientResult), new object[] { 5 })).
DefaultTimeout
();
28
var invocationMessage = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
31
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage.InvocationId, res)).
DefaultTimeout
();
33
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
56
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
58
var invocationId = await client.SendHubMessageAsync(new InvocationMessage("1", nameof(MethodHub.GetClientResult), new object[] { 5 })).
DefaultTimeout
();
61
var invocationMessage = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
63
await client.SendHubMessageAsync(CompletionMessage.WithError(invocationMessage.InvocationId, "Client error")).
DefaultTimeout
();
65
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
88
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
91
var closeMessage = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
115
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
119
var closeMessage = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
122
var ex = await Assert.ThrowsAsync<IOException>(() => connectionHandlerTask).
DefaultTimeout
();
148
var message = await client.ReadAsync().
DefaultTimeout
();
155
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocation.InvocationId, 2)).
DefaultTimeout
();
157
var result = await resultTask.
DefaultTimeout
();
182
var message = await client.ReadAsync().
DefaultTimeout
();
189
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocation.InvocationId, 2)).
DefaultTimeout
();
191
var result = await resultTask.
DefaultTimeout
();
206
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
211
new object[] { 7, 3 })).
DefaultTimeout
();
217
var invocationMessage = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
220
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage.InvocationId, res)).
DefaultTimeout
();
223
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
241
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
244
_ = await client.SendHubMessageAsync(new InvocationMessage("1", nameof(MethodHub.BlockingMethod), Array.Empty<object>())).
DefaultTimeout
();
247
var invocationId = await client.SendHubMessageAsync(new InvocationMessage("2", nameof(MethodHub.GetClientResult), new object[] { 5 })).
DefaultTimeout
();
248
var invocationId2 = await client.SendHubMessageAsync(new InvocationMessage("3", nameof(MethodHub.GetClientResult), new object[] { 5 })).
DefaultTimeout
();
249
var invocationId3 = await client.SendHubMessageAsync(new InvocationMessage("4", nameof(MethodHub.GetClientResult), new object[] { 5 })).
DefaultTimeout
();
253
var invocationMessage = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
254
var invocationMessage2 = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
255
var invocationMessage3 = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
261
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage.InvocationId, res)).
DefaultTimeout
();
262
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
267
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage2.InvocationId, res)).
DefaultTimeout
();
268
completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
273
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage3.InvocationId, res)).
DefaultTimeout
();
274
completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
295
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
297
var completionMessage = await client.InvokeAsync(nameof(MethodHub.BackgroundClientResult)).
DefaultTimeout
();
301
var task = await Task.WhenAny(tcsService.EndMethod.Task, client.ReadAsync()).
DefaultTimeout
();
310
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage.InvocationId, res)).
DefaultTimeout
();
312
Assert.Equal(5, await tcsService.EndMethod.Task.
DefaultTimeout
());
315
completionMessage = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).
DefaultTimeout
();
375
var message = await client.ReadAsync().
DefaultTimeout
();
384
var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).
DefaultTimeout
();
388
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocation.InvocationId, 2)).
DefaultTimeout
();
392
var completion = await client.InvokeAsync(nameof(HubT.Echo), "test").
DefaultTimeout
();
420
var message = await client.ReadAsync().
DefaultTimeout
();
429
var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).
DefaultTimeout
();
433
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocation.InvocationId, 2)).
DefaultTimeout
();
437
var completion = await client.InvokeAsync("Echo", "test").
DefaultTimeout
();
454
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
459
var invocationId = await client.BeginUploadStreamAsync("1", nameof(MethodHub.GetClientResultWithStream), new[] { streamId }, Array.Empty<object>()).
DefaultTimeout
();
462
var invocationMessage = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
468
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage.InvocationId, res)).
DefaultTimeout
();
470
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
475
var completionMessage = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).
DefaultTimeout
();
495
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
497
var invocationId = await client.SendStreamInvocationAsync(nameof(MethodHub.StreamWithClientResult)).
DefaultTimeout
();
500
var invocationMessage = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
503
await client.SendHubMessageAsync(CompletionMessage.WithResult(invocationMessage.InvocationId, res)).
DefaultTimeout
();
505
var streamItem = Assert.IsType<StreamItemMessage>(await client.ReadAsync().
DefaultTimeout
());
509
var completionMessage = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
513
completionMessage = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).
DefaultTimeout
();
HubConnectionHandlerTests.cs (330)
79
var result = (await client.InvokeAsync(nameof(HubWithAsyncDisposable.Test)).
DefaultTimeout
());
155
await client.SendInvocationAsync(nameof(AbortHub.Kill)).
DefaultTimeout
();
157
var close = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
321
var message = await client.ReadAsync(isHandshake: true).
DefaultTimeout
();
405
var completionMessage = await task.
DefaultTimeout
() as CompletionMessage;
560
var completionMessage = await client.ReadAsync().
DefaultTimeout
() as CompletionMessage;
565
completionMessage = await client.ReadAsync().
DefaultTimeout
() as CompletionMessage;
571
CloseMessage closeMessage = await client.ReadAsync().
DefaultTimeout
() as CloseMessage;
611
var completionMessage = await client.ReadAsync().
DefaultTimeout
() as CompletionMessage;
616
completionMessage = await client.ReadAsync().
DefaultTimeout
() as CompletionMessage;
621
completionMessage = await client.ReadAsync().
DefaultTimeout
() as CompletionMessage;
806
var result = (await client.InvokeAsync(nameof(MethodHub.TaskValueMethod)).
DefaultTimeout
()).Result;
832
var result = (await client.InvokeAsync(nameof(MethodHub.ValueTaskValueMethod)).
DefaultTimeout
()).Result;
858
var result = (await client.InvokeAsync(nameof(MethodHub.ValueTaskMethod)).
DefaultTimeout
()).Result;
882
var result = (await client.InvokeAsync("echo", "hello").
DefaultTimeout
()).Result;
928
var message = await client.InvokeAsync(methodName).
DefaultTimeout
();
960
await client.SendInvocationAsync(nameof(MethodHub.BlockingMethod)).
DefaultTimeout
();
964
var closeMessage = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
997
var message = await client.InvokeAsync(methodName).
DefaultTimeout
();
1022
await client.SendInvocationAsync(nameof(MethodHub.ValueMethod), nonBlocking: true).
DefaultTimeout
();
1051
var result = (await client.InvokeAsync(nameof(MethodHub.VoidMethod)).
DefaultTimeout
()).Result;
1076
var result = (await client.InvokeAsync("RenamedMethod").
DefaultTimeout
()).Result;
1102
var result = (await client.InvokeAsync("RenamedVirtualMethod").
DefaultTimeout
()).Result;
1138
await client.SendInvocationAsync(methodName, nonBlocking: true).
DefaultTimeout
();
1144
var closeMessage = await client.ReadAsync().
DefaultTimeout
();
1165
var result = (await client.InvokeAsync(nameof(MethodHub.ConcatString), (byte)32, 42, 'm', "string").
DefaultTimeout
()).Result;
1190
var result = (await client.InvokeAsync(nameof(InheritedHub.BaseMethod), "string").
DefaultTimeout
()).Result;
1215
var result = (await client.InvokeAsync(nameof(InheritedHub.VirtualMethod), 10).
DefaultTimeout
()).Result;
1240
var result = await client.InvokeAsync(nameof(MethodHub.OnDisconnectedAsync)).
DefaultTimeout
();
1284
var result = await client.InvokeAsync(nameof(MethodHub.StaticMethod)).
DefaultTimeout
();
1309
var result = await client.InvokeAsync(nameof(MethodHub.ToString)).
DefaultTimeout
();
1312
result = await client.InvokeAsync(nameof(MethodHub.GetHashCode)).
DefaultTimeout
();
1315
result = await client.InvokeAsync(nameof(MethodHub.Equals)).
DefaultTimeout
();
1318
result = await client.InvokeAsync(nameof(MethodHub.ReferenceEquals)).
DefaultTimeout
();
1342
var result = await client.InvokeAsync(nameof(MethodHub.Dispose)).
DefaultTimeout
();
1383
await firstClient.SendInvocationAsync(nameof(MethodHub.BroadcastMethod), "test").
DefaultTimeout
();
1387
secondClient.ReadAsync()).
DefaultTimeout
())
1421
await firstClient.SendInvocationAsync(nameof(MethodHub.SendArray)).
DefaultTimeout
();
1425
secondClient.ReadAsync()).
DefaultTimeout
())
1459
await firstClient.SendInvocationAsync("SendToOthers", "To others").
DefaultTimeout
();
1461
var secondClientResult = await secondClient.ReadAsync().
DefaultTimeout
();
1466
var firstClientResult = await firstClient.ReadAsync().
DefaultTimeout
();
1469
await secondClient.SendInvocationAsync("BroadcastMethod", "To everyone").
DefaultTimeout
();
1470
firstClientResult = await firstClient.ReadAsync().
DefaultTimeout
();
1500
await firstClient.SendInvocationAsync("SendToCaller", "To caller").
DefaultTimeout
();
1502
var firstClientResult = await firstClient.ReadAsync().
DefaultTimeout
();
1507
await firstClient.SendInvocationAsync("BroadcastMethod", "To everyone").
DefaultTimeout
();
1508
var secondClientResult = await secondClient.ReadAsync().
DefaultTimeout
();
1570
await firstClient.SendInvocationAsync("SendToAllExcept", "To second", excludeThirdClientId).
DefaultTimeout
();
1571
await firstClient.SendInvocationAsync("SendToAllExcept", "To third", excludeSecondClientId).
DefaultTimeout
();
1573
var secondClientResult = await secondClient.ReadAsync().
DefaultTimeout
();
1578
var thirdClientResult = await thirdClient.ReadAsync().
DefaultTimeout
();
1614
await firstClient.SendInvocationAsync("SendToMultipleClients", "Second and Third", secondAndThirdClients).
DefaultTimeout
();
1616
var secondClientResult = await secondClient.ReadAsync().
DefaultTimeout
();
1621
var thirdClientResult = await thirdClient.ReadAsync().
DefaultTimeout
();
1627
var hubMessage = await firstClient.ReadAsync().
DefaultTimeout
();
1659
await firstClient.SendInvocationAsync(nameof(MethodHub.SendToMultipleUsers), new[] { "userB", "userC" }, "Second and Third").
DefaultTimeout
();
1661
var secondClientResult = await secondClient.ReadAsync().
DefaultTimeout
();
1666
var thirdClientResult = await thirdClient.ReadAsync().
DefaultTimeout
();
1672
var hubMessage = await firstClient.ReadAsync().
DefaultTimeout
();
1702
var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").
DefaultTimeout
()).Result;
1710
result = (await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").
DefaultTimeout
()).Result;
1712
await firstClient.SendInvocationAsync(nameof(MethodHub.GroupSendMethod), "testGroup", "test").
DefaultTimeout
();
1715
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
1746
var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").
DefaultTimeout
()).Result;
1754
await firstClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").
DefaultTimeout
();
1755
await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").
DefaultTimeout
();
1759
await firstClient.SendInvocationAsync("GroupExceptSendMethod", "testGroup", "test", excludedConnectionIds).
DefaultTimeout
();
1762
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
1769
hubMessage = await firstClient.ReadAsync().
DefaultTimeout
();
1799
var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").
DefaultTimeout
()).Result;
1807
await firstClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").
DefaultTimeout
();
1808
await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "testGroup").
DefaultTimeout
();
1810
await firstClient.SendInvocationAsync("SendToOthersInGroup", "testGroup", "test").
DefaultTimeout
();
1813
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
1820
hubMessage = await firstClient.ReadAsync().
DefaultTimeout
();
1850
await secondClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "GroupA").
DefaultTimeout
();
1851
await firstClient.InvokeAsync(nameof(MethodHub.GroupAddMethod), "GroupB").
DefaultTimeout
();
1854
await firstClient.SendInvocationAsync(nameof(MethodHub.SendToMultipleGroups), "test", groupNames).
DefaultTimeout
();
1856
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
1862
hubMessage = await firstClient.ReadAsync().
DefaultTimeout
();
1890
await client.SendInvocationAsync(nameof(MethodHub.GroupRemoveMethod), "testGroup").
DefaultTimeout
();
1916
await firstClient.SendInvocationAsync("ClientSendMethod", "userB", "test").
DefaultTimeout
();
1919
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
1950
await firstClient.SendInvocationAsync("ConnectionSendMethod", secondClient.Connection.ConnectionId, "test").
DefaultTimeout
();
1953
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
1983
await firstClient.SendInvocationAsync("DelayedSend", secondClient.Connection.ConnectionId, "test").
DefaultTimeout
();
1986
var hubMessage = await secondClient.ReadAsync().
DefaultTimeout
();
2023
var messages = await client.StreamAsync(method, 4).
DefaultTimeout
();
2057
await client.SendHubMessageAsync(new CancelInvocationMessage(invocationId)).
DefaultTimeout
();
2059
var hubMessage = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
2143
var message1 = await client1.ReadAsync().
DefaultTimeout
();
2144
var message2 = await client2.ReadAsync().
DefaultTimeout
();
2213
var message = await client.InvokeAsync(nameof(MethodHub.AuthMethod)).
DefaultTimeout
();
2250
var message = await client.InvokeAsync(nameof(MethodHub.AuthMethod)).
DefaultTimeout
();
2292
var close = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
2358
var message = await client.InvokeAsync(nameof(MethodHub.MultiParamAuthMethod), "Hello", "World!").
DefaultTimeout
();
2395
await client.SendInvocationAsync(nameof(MethodHub.BroadcastItem)).
DefaultTimeout
();
2397
var message = (InvocationMessage)await client.ReadAsync().
DefaultTimeout
();
2425
await client.SendInvocationAsync(nameof(MethodHub.BroadcastItem)).
DefaultTimeout
();
2427
var message = (InvocationMessage)await client.ReadAsync().
DefaultTimeout
();
2465
await client.SendInvocationAsync(nameof(MethodHub.BroadcastItem)).
DefaultTimeout
();
2467
var message = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
2499
await Assert.ThrowsAsync<InvalidOperationException>(async () => await await client.ConnectAsync(connectionHandler, expectedHandshakeResponseMessage: false)).
DefaultTimeout
();
2523
await Assert.ThrowsAsync<InvalidOperationException>(async () => await await client.ConnectAsync(connectionHandler, expectedHandshakeResponseMessage: false)).
DefaultTimeout
();
2561
await client2.SendInvocationAsync(nameof(MethodHub.SendToMultipleUsers), new[] { "client1" }, "Hi!").
DefaultTimeout
();
2563
var message = (InvocationMessage)await client1.ReadAsync().
DefaultTimeout
();
2628
var result = (await client.InvokeAsync(nameof(MethodHub.HasHttpContext)).
DefaultTimeout
()).Result;
2653
var result = (await client.InvokeAsync(nameof(MethodHub.HasHttpContext)).
DefaultTimeout
()).Result;
2677
await client.SendHubMessageAsync(PingMessage.Instance).
DefaultTimeout
();
2680
var completion = await client.InvokeAsync(nameof(MethodHub.ValueMethod)).
DefaultTimeout
();
2710
await client.SendInvocationAsync("Echo", "foo").
DefaultTimeout
();
2771
while ((message = await client.ReadAsync().
DefaultTimeout
()) != null)
2823
var id = await client.SendInvocationAsync(nameof(MethodHub.ValueMethod)).
DefaultTimeout
();
2824
var result = await client.ReadAsync().
DefaultTimeout
();
2922
var id = await client.SendInvocationAsync(nameof(MethodHub.ValueMethod)).
DefaultTimeout
();
2923
var result = await client.ReadAsync().
DefaultTimeout
();
3032
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3038
_ = await client.SendInvocationAsync(nameof(LongRunningHub.LongRunningMethod)).
DefaultTimeout
();
3046
await hubMethodTask1.
DefaultTimeout
();
3047
await client.ReadAsync().
DefaultTimeout
();
3088
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3120
var message = await client.ReadAsync().
DefaultTimeout
();
3154
var message = await client.ReadAsync().
DefaultTimeout
();
3187
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3190
await client.SendHubMessageAsync(new StreamInvocationMessage("1", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).
DefaultTimeout
();
3192
var completion = await client.InvokeAsync(nameof(StreamingHub.NonStream)).
DefaultTimeout
();
3296
await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).
DefaultTimeout
();
3298
await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).
DefaultTimeout
();
3300
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
3335
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3338
await client.SendInvocationAsync(nameof(LongRunningHub.LongRunningMethod), nonBlocking: false).
DefaultTimeout
();
3340
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3343
await client.SendInvocationAsync(nameof(LongRunningHub.SimpleMethod), nonBlocking: false).
DefaultTimeout
();
3351
var firstResult = await client.ReadAsync().
DefaultTimeout
();
3357
var secondResult = await client.ReadAsync().
DefaultTimeout
();
3390
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3393
await client.SendInvocationAsync(nameof(LongRunningHub.LongRunningMethod), nonBlocking: false).
DefaultTimeout
();
3395
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3400
await client.SendInvocationAsync(nameof(LongRunningHub.SimpleMethod), nonBlocking: false).
DefaultTimeout
();
3403
var secondResult = await client.ReadAsync().
DefaultTimeout
();
3413
var firstResult = await client.ReadAsync().
DefaultTimeout
();
3446
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3449
await client.SendInvocationAsync(nameof(LongRunningHub.LongRunningMethod), nonBlocking: false).
DefaultTimeout
();
3451
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3457
await client.SendInvocationAsync(nameof(LongRunningHub.LongRunningMethod), nonBlocking: false).
DefaultTimeout
();
3459
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3462
await client.SendInvocationAsync(nameof(LongRunningHub.SimpleMethod), nonBlocking: false).
DefaultTimeout
();
3470
var firstResult = await client.ReadAsync().
DefaultTimeout
();
3476
var secondResult = await client.ReadAsync().
DefaultTimeout
();
3484
firstResult = await client.ReadAsync().
DefaultTimeout
();
3517
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3520
var streamInvocationId = await client.SendStreamInvocationAsync(nameof(LongRunningHub.LongRunningStream), null).
DefaultTimeout
();
3522
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3525
var completion = await client.InvokeAsync(nameof(LongRunningHub.SimpleMethod)).
DefaultTimeout
();
3534
await client.SendHubMessageAsync(new CancelInvocationMessage(streamInvocationId)).
DefaultTimeout
();
3537
completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
3564
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3572
await client.ReadAsync().
DefaultTimeout
();
3574
var closeMessage = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
3601
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3602
await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.StreamDontRead), new[] { "id" }, Array.Empty<object>()).
DefaultTimeout
();
3606
await client.SendHubMessageAsync(new StreamItemMessage("id", letter)).
DefaultTimeout
();
3612
var result = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
(5000);
3625
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3630
await client.SendHubMessageAsync(new StreamItemMessage("id", letter)).
DefaultTimeout
();
3633
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
3634
var result = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
3648
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3654
await client.SendHubMessageAsync(new StreamItemMessage("id", thing)).
DefaultTimeout
();
3657
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
3658
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
3676
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3690
await client.SendHubMessageAsync(new StreamItemMessage(spot.ToString(CultureInfo.InvariantCulture), words[spot][pos[spot]])).
DefaultTimeout
();
3696
await client.SendHubMessageAsync(CompletionMessage.Empty(id)).
DefaultTimeout
();
3697
var response = await client.ReadAsync().
DefaultTimeout
();
3740
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3742
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3747
await client.SendHubMessageAsync(new StreamItemMessage("id", thing)).
DefaultTimeout
();
3752
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
3753
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
3776
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3778
await tcsService.StartedMethod.Task.
DefaultTimeout
();
3780
var completion = await client.InvokeAsync(nameof(LongRunningHub.SimpleMethod)).
DefaultTimeout
();
3784
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
3786
await tcsService.EndMethod.Task.
DefaultTimeout
();
3787
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
3806
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3808
await client.SendInvocationAsync(nameof(MethodHub.ProtocolError)).
DefaultTimeout
();
3828
await client.SendInvocationAsync(nameof(ConnectionLifetimeHub.ProtocolErrorSelf)).
DefaultTimeout
();
3851
await client.SendInvocationAsync(nameof(ConnectionLifetimeHub.ProtocolErrorAll)).
DefaultTimeout
();
3872
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3873
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, Array.Empty<object>()).
DefaultTimeout
();
3876
await client.SendHubMessageAsync(new StreamItemMessage("id", 5)).
DefaultTimeout
();
3877
await client.SendHubMessageAsync(new StreamItemMessage("id", 10)).
DefaultTimeout
();
3879
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
3880
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
3903
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3923
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3924
await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.TestTypeCastingErrors), new[] { "channelId" }, Array.Empty<object>()).
DefaultTimeout
();
3928
await client.SendHubMessageAsync(new StreamItemMessage("channelId", "not a number")).
DefaultTimeout
();
3929
var response = await client.ReadAsync().
DefaultTimeout
();
3950
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3951
await client.SendHubMessageAsync(new StreamItemMessage("fake_id", "not a number")).
DefaultTimeout
();
3975
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
3976
await client.SendHubMessageAsync(CompletionMessage.Empty("fake_id")).
DefaultTimeout
();
3999
await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4000
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.TestCustomErrorPassing), streamIds: new[] { "id" }, args: Array.Empty<object>()).
DefaultTimeout
();
4001
await client.SendHubMessageAsync(CompletionMessage.WithError("id", CustomErrorMessage)).
DefaultTimeout
();
4003
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
4019
await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4020
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id", "id2" }, args: Array.Empty<object>()).
DefaultTimeout
();
4022
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
4038
await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4039
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: Array.Empty<string>(), args: Array.Empty<object>()).
DefaultTimeout
();
4041
var response = (CompletionMessage)await client.ReadAsync().
DefaultTimeout
();
4060
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4062
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).
DefaultTimeout
();
4064
await client.SendHubMessageAsync(new StreamItemMessage("id", "hello")).
DefaultTimeout
();
4065
await client.SendHubMessageAsync(new StreamItemMessage("id", " world")).
DefaultTimeout
();
4066
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
4067
var result = await client.ReadAsync().
DefaultTimeout
();
4098
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4104
await client.BeginUploadStreamAsync(invocationId: null, nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).
DefaultTimeout
();
4105
await client.SendHubMessageAsync(new StreamItemMessage("id", "hello")).
DefaultTimeout
();
4106
await client.SendHubMessageAsync(new StreamItemMessage("id", " world")).
DefaultTimeout
();
4110
await client.SendHubMessageAsync(CompletionMessage.Empty("id")).
DefaultTimeout
();
4135
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4137
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).
DefaultTimeout
();
4139
await client.SendHubMessageAsync(new StreamItemMessage("id", "ignored")).
DefaultTimeout
();
4140
var result = await client.ReadAsync().
DefaultTimeout
();
4146
await client.SendHubMessageAsync(new StreamItemMessage("id", "error!")).
DefaultTimeout
();
4149
await client.SendInvocationAsync("VoidMethod").
DefaultTimeout
();
4172
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4174
await client.SendStreamInvocationAsync(nameof(MethodHub.StreamAndUploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).
DefaultTimeout
();
4176
await client.SendHubMessageAsync(new StreamItemMessage("id", "ignored")).
DefaultTimeout
();
4177
var result = await client.ReadAsync().
DefaultTimeout
();
4183
await client.SendHubMessageAsync(new StreamItemMessage("id", "error!")).
DefaultTimeout
();
4186
await client.SendInvocationAsync("VoidMethod").
DefaultTimeout
();
4218
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4220
var streamInvocationId = await client.SendStreamInvocationAsync(methodName, args).
DefaultTimeout
();
4222
await tcsService.StartedMethod.Task.
DefaultTimeout
();
4225
await client.SendHubMessageAsync(new CancelInvocationMessage(streamInvocationId)).
DefaultTimeout
();
4227
var result = await client.ReadAsync().
DefaultTimeout
();
4233
await tcsService.EndMethod.Task.
DefaultTimeout
();
4261
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4264
var invocationId = await client.SendStreamInvocationAsync(methodName, count).
DefaultTimeout
();
4270
await listeningMessages.ReadAsync(count).
DefaultTimeout
();
4273
await client.SendHubMessageAsync(new CancelInvocationMessage(invocationId)).
DefaultTimeout
();
4276
var messages = await listeningMessages.ReadAllAsync().
DefaultTimeout
();
4280
await tcsService.EndMethod.Task.
DefaultTimeout
();
4304
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4306
var streamInvocationId = await client.SendStreamInvocationAsync(nameof(LongRunningHub.CancelableStreamSingleParameter)).
DefaultTimeout
();
4308
await tcsService.StartedMethod.Task.
DefaultTimeout
();
4314
await tcsService.EndMethod.Task.
DefaultTimeout
();
4335
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4337
var streamInvocationId = await client.SendStreamInvocationAsync(nameof(LongRunningHub.StreamNullableParameter), 5, null).
DefaultTimeout
();
4339
var firstArgument = await tcsService.StartedMethod.Task.
DefaultTimeout
();
4342
var secondArgument = await tcsService.EndMethod.Task.
DefaultTimeout
();
4362
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4364
var streamInvocationId = await client.SendStreamInvocationAsync(nameof(LongRunningHub.CancelableStreamNullableParameter), 5, null).
DefaultTimeout
();
4366
var firstArgument = await tcsService.StartedMethod.Task.
DefaultTimeout
();
4370
await client.SendHubMessageAsync(new CancelInvocationMessage(streamInvocationId)).
DefaultTimeout
();
4372
var secondArgument = await tcsService.EndMethod.Task.
DefaultTimeout
();
4388
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4390
var invocationId = await client.SendInvocationAsync(nameof(MethodHub.InvalidArgument)).
DefaultTimeout
();
4392
var completion = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
4421
var messagePromise = client.StreamAsync(nameof(StreamingHub.StreamEcho), new[] { streamId }, Array.Empty<object>()).
DefaultTimeout
();
4490
var messages = await client.StreamAsync(method, argument).
DefaultTimeout
();
4524
var message = Assert.IsType<InvocationMessage>(await client.ReadAsync().
DefaultTimeout
());
4550
var message = await client.ReadAsync().
DefaultTimeout
();
4574
await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadDoesWorkOnComplete), streamIds: new[] { "id" }, args: Array.Empty<object>()).
DefaultTimeout
();
4576
await client.SendHubMessageAsync(new StreamItemMessage("id", "hello")).
DefaultTimeout
();
4585
var exception = await Assert.ThrowsAsync<OperationCanceledException>(() => task).
DefaultTimeout
();
4640
var message = await client.ReadAsync().
DefaultTimeout
();
4660
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4661
var res = await client.InvokeAsync(nameof(ServicesHub.SingleService)).
DefaultTimeout
();
4677
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4678
var res = await client.InvokeAsync(nameof(ServicesHub.SingleService)).
DefaultTimeout
();
4696
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4697
var res = await client.InvokeAsync(nameof(ServicesHub.MultipleServices)).
DefaultTimeout
();
4715
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4716
await client.BeginUploadStreamAsync("0", nameof(ServicesHub.ServicesAndParams), new string[] { "1" }, 10, true).
DefaultTimeout
();
4718
await client.SendHubMessageAsync(new StreamItemMessage("1", 1)).
DefaultTimeout
();
4719
await client.SendHubMessageAsync(new StreamItemMessage("1", 14)).
DefaultTimeout
();
4721
await client.SendHubMessageAsync(CompletionMessage.Empty("1")).
DefaultTimeout
();
4723
var response = Assert.IsType<CompletionMessage>(await client.ReadAsync().
DefaultTimeout
());
4740
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4741
var res = await client.InvokeAsync(nameof(ServicesHub.Stream)).
DefaultTimeout
();
4762
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4763
var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).
DefaultTimeout
();
4783
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4784
var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).
DefaultTimeout
();
4804
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4805
var res = await client.InvokeAsync(nameof(ServicesHub.IEnumerableOfServiceWithoutAttribute)).
DefaultTimeout
();
4829
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4830
var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).
DefaultTimeout
();
4852
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4853
var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithAndWithoutAttribute)).
DefaultTimeout
();
4874
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4875
var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithAndWithoutAttribute)).
DefaultTimeout
();
4894
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4895
var res = await client.InvokeAsync(nameof(ServicesHub.ServiceWithoutAttribute)).
DefaultTimeout
();
4914
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4915
var res = await client.InvokeAsync(nameof(ServicesHub.IEnumerableOfServiceWithoutAttribute)).
DefaultTimeout
();
4937
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4938
var res = await client.InvokeAsync(nameof(KeyedServicesHub.KeyedService)).
DefaultTimeout
();
4960
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4961
var res = await client.InvokeAsync(nameof(KeyedServicesHub.KeyedServiceWithParam), 91).
DefaultTimeout
();
4984
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
4985
var res = await client.InvokeAsync(nameof(KeyedServicesHub.KeyedServiceNonKeyedService)).
DefaultTimeout
();
5007
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
5008
var res = await client.InvokeAsync(nameof(KeyedServicesHub.MultipleKeyedServices)).
DefaultTimeout
();
5030
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
5031
var res = await client.InvokeAsync(nameof(KeyedServicesHub.MultipleSameKeyedServices)).
DefaultTimeout
();
5100
var connectionHandlerTask = await client1.ConnectAsync(connectionHandler).
DefaultTimeout
();
5101
_ = await client2.ConnectAsync(connectionHandler).
DefaultTimeout
();
5103
var message = Assert.IsType<InvocationMessage>(await client1.ReadAsync().
DefaultTimeout
());
5125
var message = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
5150
var message = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
5177
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
5179
await client.SendHubMessageAsync(new SequenceMessage(10)).
DefaultTimeout
();
5180
await client.SendHubMessageAsync(new AckMessage(234)).
DefaultTimeout
();
5207
var connectionHandlerTask = await client.ConnectAsync(connectionHandler).
DefaultTimeout
();
5209
await client.InvokeAsync(nameof(MethodHub.Echo), new object[] { new string('x', 500) }).
DefaultTimeout
();
5212
await client.SendInvocationAsync(nameof(MethodHub.Echo), new object[] { "t" }).
DefaultTimeout
();
5218
await client.SendHubMessageAsync(new AckMessage(1)).
DefaultTimeout
();
5258
var seqMessage = Assert.IsType<SequenceMessage>(await client.ReadAsync().
DefaultTimeout
());
5261
await client.SendHubMessageAsync(new SequenceMessage(1)).
DefaultTimeout
();
5323
var message = Assert.IsType<CloseMessage>(await client.ReadAsync().
DefaultTimeout
());
HubFilterTests.cs (44)
120
await tcsService.StartedMethod.Task.
DefaultTimeout
();
122
await tcsService.EndMethod.Task.
DefaultTimeout
();
125
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
126
await tcsService.EndMethod.Task.
DefaultTimeout
();
135
await tcsService.EndMethod.Task.
DefaultTimeout
();
194
await tcsService1.StartedMethod.Task.
DefaultTimeout
();
195
await tcsService2.StartedMethod.Task.
DefaultTimeout
();
197
await tcsService1.EndMethod.Task.
DefaultTimeout
();
198
await tcsService2.EndMethod.Task.
DefaultTimeout
();
202
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
203
await tcsService1.EndMethod.Task.
DefaultTimeout
();
204
await tcsService2.EndMethod.Task.
DefaultTimeout
();
214
await tcsService1.EndMethod.Task.
DefaultTimeout
();
215
await tcsService2.EndMethod.Task.
DefaultTimeout
();
244
await tcsService1.StartedMethod.Task.
DefaultTimeout
();
245
await tcsService2.StartedMethod.Task.
DefaultTimeout
();
247
await tcsService1.EndMethod.Task.
DefaultTimeout
();
248
await tcsService2.EndMethod.Task.
DefaultTimeout
();
252
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
253
await tcsService1.EndMethod.Task.
DefaultTimeout
();
254
await tcsService2.EndMethod.Task.
DefaultTimeout
();
264
await tcsService1.EndMethod.Task.
DefaultTimeout
();
265
await tcsService2.EndMethod.Task.
DefaultTimeout
();
295
await tcsService1.StartedMethod.Task.
DefaultTimeout
();
296
await tcsService2.StartedMethod.Task.
DefaultTimeout
();
298
await tcsService1.EndMethod.Task.
DefaultTimeout
();
299
await tcsService2.EndMethod.Task.
DefaultTimeout
();
303
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
304
await tcsService1.EndMethod.Task.
DefaultTimeout
();
305
await tcsService2.EndMethod.Task.
DefaultTimeout
();
315
await tcsService1.EndMethod.Task.
DefaultTimeout
();
316
await tcsService2.EndMethod.Task.
DefaultTimeout
();
361
var message = await invokeTask.
DefaultTimeout
();
421
var message = await invokeTask.
DefaultTimeout
();
483
var message = await invokeTask.
DefaultTimeout
();
551
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
599
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
700
var message = await client.InvokeAsync(nameof(MethodHub.Echo), "Hello world!").
DefaultTimeout
();
736
await tcsService.StartedMethod.Task.
DefaultTimeout
();
741
await tcsService.StartedMethod.Task.
DefaultTimeout
();
747
await tcsService.StartedMethod.Task.
DefaultTimeout
();
812
await tcsService.StartedMethod.Task.
DefaultTimeout
();
817
await tcsService.StartedMethod.Task.
DefaultTimeout
();
823
await tcsService.StartedMethod.Task.
DefaultTimeout
();
Internal\TypedClientBuilderTests.cs (1)
238
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => typedProxy.GetValue(102, objArg, "test")).
DefaultTimeout
();
NativeAotTests.cs (3)
47
var result = await connection.InvokeAsync<int>(nameof(AsyncMethodHub.TaskValueMethod)).
DefaultTimeout
();
50
result = await connection.InvokeAsync<int>(nameof(AsyncMethodHub.ValueTaskValueMethod)).
DefaultTimeout
();
53
result = await connection.InvokeAsync<int>(nameof(AsyncMethodHub.CustomTaskValueMethod)).
DefaultTimeout
();
SerializedHubMessageTests.cs (2)
81
await firstSerialization.
DefaultTimeout
();
82
await secondSerialization.
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
85
HandshakeResponseMessage = (HandshakeResponseMessage)await ReadAsync(true).
DefaultTimeout
();
Microsoft.AspNetCore.TestHost.Tests (30)
ClientHandlerTests.cs (2)
458
await Assert.ThrowsAsync<OperationCanceledException>(() => readTask.
DefaultTimeout
());
481
await Assert.ThrowsAsync<OperationCanceledException>(() => readTask.
DefaultTimeout
());
HttpContextBuilderTests.cs (3)
212
await Assert.ThrowsAsync<OperationCanceledException>(() => readTask.
DefaultTimeout
());
236
await Assert.ThrowsAsync<OperationCanceledException>(() => contextTask.
DefaultTimeout
());
262
await Assert.ThrowsAsync<OperationCanceledException>(() => readTask.
DefaultTimeout
());
ResponseBodyTests.cs (1)
149
read = await zeroByteRead.
DefaultTimeout
();
TestClientTests.cs (24)
99
var response = await client.PutAsync("http://localhost:12345", content).
DefaultTimeout
();
102
Assert.Equal("Hello world PUT Response", await response.Content.ReadAsStringAsync().
DefaultTimeout
());
117
var response = await client.PostAsync("http://localhost:12345", content).
DefaultTimeout
();
120
Assert.Equal("Hello world POST Response", await response.Content.ReadAsStringAsync().
DefaultTimeout
());
205
var response = await client.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
210
var responseContent = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
218
var length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
227
length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
235
length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
313
var response = await client.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
318
var responseContent = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
370
var response = await client.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
372
var responseContent = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
378
var length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
398
length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
432
var response = await client.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
434
var responseContent = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
444
var length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
479
var response = await client.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
481
var responseContent = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
489
var length = await responseContent.ReadAsync(buffer).AsTask().
DefaultTimeout
();
530
var response = await client.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead).
DefaultTimeout
();
532
var responseContent = await response.Content.ReadAsStreamAsync().
DefaultTimeout
();
545
"Flush was canceled on underlying PipeWriter.").
DefaultTimeout
();
Sockets.FunctionalTests (15)
src\Servers\Kestrel\shared\test\TestApp.cs (2)
22
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
52
await request.Body.FillBufferUntilEndAsync(buffer).
DefaultTimeout
();
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (2)
200
var closingMessageTask = WaitForLogMessage(m => m.Message.Contains("is closing.")).
DefaultTimeout
();
207
var closedMessageTask = WaitForLogMessage(m => m.Message.Contains("is closed. The last processed stream ID was 1.")).
DefaultTimeout
();
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
412
var count = await stream.ReadAsync(responseBuffer, 0, exptectedLength - matchedChars).
DefaultTimeout
();
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (4)
888
await registrationTcs.Task.
DefaultTimeout
();
925
var abortedRequestId = await registrationTcs.Task.
DefaultTimeout
();
1087
await Assert.ThrowsAnyAsync<IOException>(() => readTcs.Task).
DefaultTimeout
();
1149
var count = await stream.ReadAsync(responseBuffer, 0, expectedLength - matchedChars).
DefaultTimeout
();
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (4)
250
await Assert.ThrowsAnyAsync<OperationCanceledException>(async () => await writeTcs.Task).
DefaultTimeout
();
343
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => writeTcs.Task).
DefaultTimeout
();
843
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => copyToAsyncCts.Task).
DefaultTimeout
();
1101
var bytes = await stream.ReadAsync(receiveBuffer, 0, receiveBuffer.Length).
DefaultTimeout
();
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
102
await socket.SendAsync(data, SocketFlags.None).
DefaultTimeout
();
170
await socket.SendAsync(httpRequest, SocketFlags.None).
DefaultTimeout
();