Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public sealed partial class ManagedQuicConnection : QuicConnection, IAsyncDispos
public static new bool IsSupported => true;
public static new async ValueTask<QuicConnection> ConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken = default)
{
options.Validate(nameof(options));

var connection = new ManagedQuicConnection(options, TlsFactory.Default);
await connection.ConnectAsync(cancellationToken).ConfigureAwait(false);
return connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public sealed class ManagedQuicListener : QuicListener, IAsyncDisposable
private ManagedQuicListener(QuicListenerOptions options)
: base(true)
{
options.Validate(nameof(options));

var listenEndPoint = options.ListenEndPoint ?? new IPEndPoint(IPAddress.Any, 0);

var channel = Channel.CreateBounded<ManagedQuicConnection>(new BoundedChannelOptions(options.ListenBacklog)
Expand Down