5 writes to _contentReadStream
System.Net.Http (5)
System\Net\Http\HttpContent.cs (5)
257
_contentReadStream
= s;
287
_contentReadStream
= t;
298
_contentReadStream
= ts;
316
_contentReadStream
= s;
690
_contentReadStream
= null;
15 references to _contentReadStream
System.Net.Http (15)
System\Net\Http\HttpContent.cs (15)
252
if (
_contentReadStream
== null) // don't yet have a Stream
260
else if (
_contentReadStream
is Stream stream) // have a Stream
282
if (
_contentReadStream
== null) // don't yet have a Stream
290
else if (
_contentReadStream
is Task<Stream> t) // have a Task<Stream>
296
Debug.Assert(
_contentReadStream
is Stream, $"Expected a Stream, got ${
_contentReadStream
}");
297
Task<Stream> ts = Task.FromResult((Stream)
_contentReadStream
);
311
if (
_contentReadStream
== null) // don't yet have a Stream
319
else if (
_contentReadStream
is Stream s) // have a Stream
325
Debug.Assert(
_contentReadStream
is Task<Stream>, $"Expected a Task<Stream>, got ${
_contentReadStream
}");
326
Task<Stream> t = (Task<Stream>)
_contentReadStream
;
685
if (
_contentReadStream
!= null)
687
Stream? s =
_contentReadStream
as Stream ??
688
(
_contentReadStream
is Task<Stream> t && t.Status == TaskStatus.RanToCompletion ? t.Result : null);