WebTransportClientOptions Class
The options of WebTransportSession.ConnectAsync.
public sealed class WebTransportClientOptionsConstructors
| Name | Description |
|---|---|
| WebTransportClientOptions() |
WebTransportClientOptions()
WebTransportClientOptions.cspublic WebTransportClientOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| CongestionControlAlgorithm | Gets or sets the congestion control algorithm of the connection. |
| Headers | Gets the headers added to the CONNECT request, such as origin. Names are lowercase. |
| IdleTimeout | Gets or sets the time without activity after which the connection is closed. TimeSpan.Zero keeps the default of MsQuic. |
| MaxIncomingStreams | Gets or sets the number of streams the server can open at the same time, of each type. The default is 100. |
| Protocols | Gets the application protocols the client offers, sent in the wt-available-protocols header. The server picks one in WebTransportSession.Protocol. |
| ReceivedDatagramQueueCapacity | Gets or sets the number of received datagrams kept until WebTransportSession.ReceiveDatagramAsync reads them; the oldest are dropped. The default is 1024. |
| RemoteCertificateValidationCallback | Gets or sets the callback that validates the certificate of the server, when WebTransportClientOptions.ServerCertificateHashes is empty. |
| ServerCertificateHashes | Gets the SHA-256 hashes of the certificates the client accepts. When the list is not empty, the certificate of the server is accepted when its hash is in the list, instead of being validated against the trusted roots, as the serverCertificateHashes option of the browsers does. |
CongestionControlAlgorithm
WebTransportClientOptions.csGets or sets the congestion control algorithm of the connection.
public MsQuicCongestionControlAlgorithm CongestionControlAlgorithm { get; set; }Property value
Headers
WebTransportClientOptions.csGets the headers added to the CONNECT request, such as origin. Names are lowercase.
public IList<KeyValuePair<string, string>> Headers { get; }Property value
IdleTimeout
WebTransportClientOptions.csGets or sets the time without activity after which the connection is closed. TimeSpan.Zero keeps the default of MsQuic.
public TimeSpan IdleTimeout { get; set; }Property value
MaxIncomingStreams
WebTransportClientOptions.csProtocols
WebTransportClientOptions.csGets the application protocols the client offers, sent in the wt-available-protocols header. The server picks one in WebTransportSession.Protocol.
Property value
ReceivedDatagramQueueCapacity
WebTransportClientOptions.csGets or sets the number of received datagrams kept until WebTransportSession.ReceiveDatagramAsync reads them; the oldest are dropped. The default is 1024.
public int ReceivedDatagramQueueCapacity { get; set; }Property value
RemoteCertificateValidationCallback
WebTransportClientOptions.csGets or sets the callback that validates the certificate of the server, when WebTransportClientOptions.ServerCertificateHashes is empty.
public RemoteCertificateValidationCallback? RemoteCertificateValidationCallback { get; set; }Property value
ServerCertificateHashes
WebTransportClientOptions.csGets the SHA-256 hashes of the certificates the client accepts. When the list is not empty, the certificate of the server is accepted when its hash is in the list, instead of being validated against the trusted roots, as the serverCertificateHashes option of the browsers does.