43 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
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
371
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
416
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
465
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
596
var clientStream = await requestState.QuicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
646
var clientStream1 = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
674
var clientStream2 = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
724
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
QuicConnectionListenerTests.cs (1)
129
using var clientStream = await quicConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
QuicStreamContextTests.cs (10)
67
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
116
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
184
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
var clientStream = await clientConnection.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional);
572
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)
178
quicStream = await conn.OpenOutboundStreamAsync(
QuicStreamType
.Bidirectional, cancellationToken).ConfigureAwait(false);
383
_clientControl = await _connection!.OpenOutboundStreamAsync(
QuicStreamType
.Unidirectional).ConfigureAwait(false);
System.Net.Quic (14)
System\Net\Quic\QuicConnection.cs (5)
35
/// Each connection can then open outbound stream: <see cref="QuicConnection.OpenOutboundStreamAsync(
QuicStreamType
, CancellationToken)" />,
416
public async ValueTask<QuicStream> OpenOutboundStreamAsync(
QuicStreamType
type, CancellationToken cancellationToken = default)
589
QuicStreamType
type = data.Flags.HasFlag(QUIC_STREAM_OPEN_FLAGS.UNIDIRECTIONAL) ?
QuicStreamType
.Unidirectional :
QuicStreamType
.Bidirectional;
System\Net\Quic\QuicStream.cs (9)
25
/// <see cref="QuicStream" /> can be <see cref="
QuicStreamType
.Unidirectional">unidirectional</see>, i.e.: write-only for the opening side,
26
/// or <see cref="
QuicStreamType
.Bidirectional">bidirectional</see> which allows both side to write.
121
private readonly
QuicStreamType
_type;
131
public
QuicStreamType
Type => _type;
159
internal unsafe QuicStream(MsQuicContextSafeHandle connectionHandle,
QuicStreamType
type, long defaultErrorCode)
167
type ==
QuicStreamType
.Unidirectional ? QUIC_STREAM_OPEN_FLAGS.UNIDIRECTIONAL : QUIC_STREAM_OPEN_FLAGS.NONE,
188
_canRead = type ==
QuicStreamType
.Bidirectional;
232
_type = flags.HasFlag(QUIC_STREAM_OPEN_FLAGS.UNIDIRECTIONAL) ?
QuicStreamType
.Unidirectional :
QuicStreamType
.Bidirectional;