2 writes to _stream
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (2)
83
_stream
= stream;
582
_stream
= null!;
26 references to _stream
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (26)
Internal\QuicStreamContext.cs (20)
81
Debug.Assert(
_stream
== null);
90
CanRead =
_stream
.CanRead;
91
CanWrite =
_stream
.CanWrite;
93
StreamId =
_stream
.Id;
150
Debug.Assert(
_stream
!= null);
159
if (
_stream
.CanRead)
164
if (
_stream
.CanWrite)
184
Debug.Assert(
_stream
!= null);
188
await
_stream
.WritesClosed;
204
Debug.Assert(
_stream
!= null);
214
var bytesReceived = await
_stream
.ReadAsync(buffer);
226
if (
_stream
.ReadsClosed.IsCompletedSuccessfully)
367
Debug.Assert(
_stream
!= null);
406
await
_stream
.WriteAsync(buffer.First, completeWrites: isCompleted);
420
await
_stream
.WriteAsync(currentSegment, completeWrites: isLastSegment && isCompleted);
483
var stream =
_stream
;
522
Debug.Assert(
_stream
!= null);
534
_stream
.CompleteWrites();
548
if (
_stream
== null)
558
await
_stream
.DisposeAsync();
Internal\QuicStreamContext.FeatureCollection.cs (6)
65
if (
_stream
!= null)
67
if (
_stream
.CanRead)
71
_stream
.Abort(QuicAbortDirection.Read, errorCode);
87
if (
_stream
!= null)
89
if (
_stream
.CanWrite)
93
_stream
.Abort(QuicAbortDirection.Write, errorCode);