46 references to ConnectAsync
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (43)
QuicConnectionContextTests.cs (16)
37
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
61
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
87
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
128
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
154
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
196
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
246
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
291
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
317
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
360
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
405
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
454
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
512
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
566
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
671
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
750
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
QuicConnectionListenerTests.cs (13)
53
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
74
await using var clientConnection1 = await QuicConnection.
ConnectAsync
(
88
await QuicConnection.
ConnectAsync
(
99
await using var clientConnection2 = await QuicConnection.
ConnectAsync
(
122
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
158
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
184
await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.
ConnectAsync
(options).AsTask());
257
var ex = await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.
ConnectAsync
(options).AsTask()).DefaultTimeout();
263
await using var clientConnection = await QuicConnection.
ConnectAsync
(options).DefaultTimeout();
321
await using var clientConnection = await QuicConnection.
ConnectAsync
(options).DefaultTimeout();
356
var clientConnectionTask = QuicConnection.
ConnectAsync
(options);
397
var clientConnectionTask = QuicConnection.
ConnectAsync
(options);
452
await using var clientConnection = await QuicConnection.
ConnectAsync
(options).DefaultTimeout();
QuicStreamContextTests.cs (14)
38
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
62
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
110
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
178
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
235
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
257
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
301
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
335
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
374
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
405
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
446
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
490
await using var quicConnection = await QuicConnection.
ConnectAsync
(options);
540
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
567
await using var clientConnection = await QuicConnection.
ConnectAsync
(options);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
121
return await QuicConnection.
ConnectAsync
(new QuicClientConnectionOptions()
System.Net.Quic (2)
System\Net\Quic\QuicConnection.cs (1)
36
/// or create with a static method <see cref="QuicConnection.
ConnectAsync
(System.Net.Quic.QuicClientConnectionOptions, CancellationToken)" /> (outbound connection).
System\Net\Quic\QuicConnectionOptions.cs (1)
146
/// <see cref="QuicConnection.
ConnectAsync
(QuicClientConnectionOptions, CancellationToken)"/> or <see cref="QuicListener.AcceptConnectionAsync(CancellationToken)"/>.