46 references to ConnectAsync
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (43)
QuicConnectionContextTests.cs (16)
37await using var clientConnection = await QuicConnection.ConnectAsync(options); 61await using var clientConnection = await QuicConnection.ConnectAsync(options); 87await using var clientConnection = await QuicConnection.ConnectAsync(options); 128await using var clientConnection = await QuicConnection.ConnectAsync(options); 154await using var quicConnection = await QuicConnection.ConnectAsync(options); 196await using var quicConnection = await QuicConnection.ConnectAsync(options); 246await using var quicConnection = await QuicConnection.ConnectAsync(options); 291await using var quicConnection = await QuicConnection.ConnectAsync(options); 317await using var clientConnection = await QuicConnection.ConnectAsync(options); 360await using var clientConnection = await QuicConnection.ConnectAsync(options); 405await using var clientConnection = await QuicConnection.ConnectAsync(options); 454await using var clientConnection = await QuicConnection.ConnectAsync(options); 512await using var clientConnection = await QuicConnection.ConnectAsync(options); 566await using var clientConnection = await QuicConnection.ConnectAsync(options); 671await using var clientConnection = await QuicConnection.ConnectAsync(options); 750await using var clientConnection = await QuicConnection.ConnectAsync(options);
QuicConnectionListenerTests.cs (13)
53await using var clientConnection = await QuicConnection.ConnectAsync(options); 74await using var clientConnection1 = await QuicConnection.ConnectAsync( 88await QuicConnection.ConnectAsync( 99await using var clientConnection2 = await QuicConnection.ConnectAsync( 122await using var quicConnection = await QuicConnection.ConnectAsync(options); 158await using var clientConnection = await QuicConnection.ConnectAsync(options); 184await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.ConnectAsync(options).AsTask()); 257var ex = await Assert.ThrowsAsync<AuthenticationException>(() => QuicConnection.ConnectAsync(options).AsTask()).DefaultTimeout(); 263await using var clientConnection = await QuicConnection.ConnectAsync(options).DefaultTimeout(); 321await using var clientConnection = await QuicConnection.ConnectAsync(options).DefaultTimeout(); 356var clientConnectionTask = QuicConnection.ConnectAsync(options); 397var clientConnectionTask = QuicConnection.ConnectAsync(options); 452await using var clientConnection = await QuicConnection.ConnectAsync(options).DefaultTimeout();
QuicStreamContextTests.cs (14)
38await using var clientConnection = await QuicConnection.ConnectAsync(options); 62await using var clientConnection = await QuicConnection.ConnectAsync(options); 110await using var clientConnection = await QuicConnection.ConnectAsync(options); 178await using var clientConnection = await QuicConnection.ConnectAsync(options); 235await using var clientConnection = await QuicConnection.ConnectAsync(options); 257await using var quicConnection = await QuicConnection.ConnectAsync(options); 301await using var quicConnection = await QuicConnection.ConnectAsync(options); 335await using var quicConnection = await QuicConnection.ConnectAsync(options); 374await using var quicConnection = await QuicConnection.ConnectAsync(options); 405await using var quicConnection = await QuicConnection.ConnectAsync(options); 446await using var quicConnection = await QuicConnection.ConnectAsync(options); 490await using var quicConnection = await QuicConnection.ConnectAsync(options); 540await using var clientConnection = await QuicConnection.ConnectAsync(options); 567await using var clientConnection = await QuicConnection.ConnectAsync(options);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
121return 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)"/>.