Επεξεργασία

Κοινή χρήση μέσω


QuicConnectionOptions.StreamCapacityCallback Property

Definition

Optional callback that is invoked when new stream limit is released by the peer. Corresponds to receiving a MAX_STREAMS frame.

The callback values represent increments of stream limits, e.g.: current limit is 10 bidirectional streams, callback arguments notify 5 more additional bidirectional streams => 15 bidirectional streams can be opened in total at the moment.

The initial capacity is reported with the first invocation of the callback that might happen before the QuicConnection instance is handed out via either ConnectAsync(QuicClientConnectionOptions, CancellationToken) or AcceptConnectionAsync(CancellationToken).

public:
 property Action<System::Net::Quic::QuicConnection ^, System::Net::Quic::QuicStreamCapacityChangedArgs> ^ StreamCapacityCallback { Action<System::Net::Quic::QuicConnection ^, System::Net::Quic::QuicStreamCapacityChangedArgs> ^ get(); void set(Action<System::Net::Quic::QuicConnection ^, System::Net::Quic::QuicStreamCapacityChangedArgs> ^ value); };
public Action<System.Net.Quic.QuicConnection,System.Net.Quic.QuicStreamCapacityChangedArgs>? StreamCapacityCallback { get; set; }
member this.StreamCapacityCallback : Action<System.Net.Quic.QuicConnection, System.Net.Quic.QuicStreamCapacityChangedArgs> with get, set
Public Property StreamCapacityCallback As Action(Of QuicConnection, QuicStreamCapacityChangedArgs)

Property Value

Applies to