WebTransportListenerOptions Class

The options of a WebTransportListener.

public sealed class WebTransportListenerOptions

Constructors

NameDescription
WebTransportListenerOptions()

WebTransportListenerOptions()

WebTransportListenerOptions.cs
public WebTransportListenerOptions()

No documentation is available.

Properties

NameDescription
CongestionControlAlgorithmGets or sets the congestion control algorithm of the connections.
IdleTimeoutGets or sets the time without activity after which a connection is closed. TimeSpan.Zero keeps the default of MsQuic.
ListenEndPointGets or sets the address to listen on. Port 0 picks a free port.
MaxIncomingStreamsGets or sets the number of streams a client can open at the same time, of each type. The default is 100.
ReceivedDatagramQueueCapacityGets or sets the number of received datagrams kept per session until WebTransportSession.ReceiveDatagramAsync reads them. The default is 1024.
ServerCertificateGets or sets the certificate of the server, with its private key. On Linux and macOS, the private key must be exportable.

CongestionControlAlgorithm

WebTransportListenerOptions.cs

Gets or sets the congestion control algorithm of the connections.

public MsQuicCongestionControlAlgorithm CongestionControlAlgorithm { get; set; }

Gets or sets the time without activity after which a connection is closed. TimeSpan.Zero keeps the default of MsQuic.

public TimeSpan IdleTimeout { get; set; }

Property value

TimeSpan

Gets or sets the address to listen on. Port 0 picks a free port.

public IPEndPoint ListenEndPoint { get; set; }

Property value

IPEndPoint

Gets or sets the number of streams a client can open at the same time, of each type. The default is 100.

public int MaxIncomingStreams { get; set; }

Property value

int

ReceivedDatagramQueueCapacity

WebTransportListenerOptions.cs

Gets or sets the number of received datagrams kept per session until WebTransportSession.ReceiveDatagramAsync reads them. The default is 1024.

public int ReceivedDatagramQueueCapacity { get; set; }

Property value

int

Gets or sets the certificate of the server, with its private key. On Linux and macOS, the private key must be exportable.

public X509Certificate2? ServerCertificate { get; set; }

Property value

X509Certificate2?