52 references to QuicStreamType
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Internal\QuicConnectionContext.cs (3)
219
quicStream = await _connection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional, cancellationToken);
223
quicStream = await _connection.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional, cancellationToken);
228
quicStream = await _connection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional, cancellationToken);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (24)
QuicConnectionContextTests.cs (12)
69
() => clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional).AsTask(),
102
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
161
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional);
203
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
328
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
371
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
416
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
465
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
605
await using var clientStream = await requestState.QuicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
677
await using var clientStream1 = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
705
await using var clientStream2 = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
755
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
QuicConnectionListenerTests.cs (1)
129
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
QuicStreamContextTests.cs (10)
67
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
116
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
184
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
262
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
306
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional);
340
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional);
379
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional);
495
await using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
545
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
572
await using var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
QuicTestHelpers.cs (1)
146
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
257
quicStream = await conn.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional, cancellationToken).ConfigureAwait(false);
468
_clientControl = await _connection!.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional).ConfigureAwait(false);
System.Net.Quic (23)
System\Net\Quic\QuicConnection.cs (11)
38
/// Each connection can then open outbound stream: <see cref="QuicConnection.OpenOutboundStreamAsync(
QuicStreamType
, CancellationToken)" />,
192
/// Optimization to avoid `Action` instantiation with every <see cref="OpenOutboundStreamAsync(
QuicStreamType
, CancellationToken)"/>.
193
/// Holds <see cref="DecrementStreamCapacity(
QuicStreamType
)"/> method.
195
private Action<
QuicStreamType
> _decrementStreamCapacity;
495
private void DecrementStreamCapacity(
QuicStreamType
streamType)
497
if (streamType ==
QuicStreamType
.Unidirectional)
505
if (streamType ==
QuicStreamType
.Bidirectional)
523
public async ValueTask<QuicStream> OpenOutboundStreamAsync(
QuicStreamType
type, CancellationToken cancellationToken = default)
701
QuicStreamType
type = data.Flags.HasFlag(QUIC_STREAM_OPEN_FLAGS.UNIDIRECTIONAL) ?
QuicStreamType
.Unidirectional :
QuicStreamType
.Bidirectional;
System\Net\Quic\QuicStream.cs (12)
26
/// <see cref="QuicStream" /> can be <see cref="
QuicStreamType
.Unidirectional">unidirectional</see>, i.e.: write-only for the opening side,
27
/// or <see cref="
QuicStreamType
.Bidirectional">bidirectional</see> which allows both side to write.
122
private readonly
QuicStreamType
_type;
125
/// Provided via <see cref="StartAsync(Action{
QuicStreamType
}, CancellationToken)" /> from <see cref="QuicConnection" /> so that <see cref="QuicStream"/> can decrement its available stream count field.
128
private Action<
QuicStreamType
>? _decrementStreamCapacity;
138
public
QuicStreamType
Type => _type;
166
internal unsafe QuicStream(MsQuicContextSafeHandle connectionHandle,
QuicStreamType
type, long defaultErrorCode)
174
type ==
QuicStreamType
.Unidirectional ? QUIC_STREAM_OPEN_FLAGS.UNIDIRECTIONAL : QUIC_STREAM_OPEN_FLAGS.NONE,
192
_canRead = type ==
QuicStreamType
.Bidirectional;
238
_type = flags.HasFlag(QUIC_STREAM_OPEN_FLAGS.UNIDIRECTIONAL) ?
QuicStreamType
.Unidirectional :
QuicStreamType
.Bidirectional;
251
internal ValueTask StartAsync(Action<
QuicStreamType
> decrementStreamCapacity, CancellationToken cancellationToken = default)