QuicConnectionOptions.DefaultCloseErrorCode Property

Definition

Gets or sets the error code used for CloseAsync(Int64, CancellationToken) when the connection is disposed.

C#
public long DefaultCloseErrorCode { get; set; }

Property Value

Remarks

This property is mandatory, and not setting it will result in validation errors when establishing a connection.

To use a different close error code, call CloseAsync(Int64, CancellationToken) explicitly before disposing.

Applies to

Product Versions
.NET 7, 8, 9, 10