QuicConnectionOptions.StreamCapacityCallback Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Optional callback that is invoked when new stream limit is released by the peer. Corresponds to receiving a MAX_STREAMS frame.
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
Remarks
The callback values represent increments of stream limits. For example, if the current limit is 10 bidirectional streams, and callback arguments notify 5 more additional bidirectional streams, then 15 bidirectional streams can be opened in total at the moment.
The initial capacity is reported with the first invocation of the callback, which might happen before the QuicConnection instance is handed out via either ConnectAsync(QuicClientConnectionOptions, CancellationToken) or AcceptConnectionAsync(CancellationToken).