5 writes to _contentReadStream
System.Net.Http (5)
System\Net\Http\HttpContent.cs (5)
215
_contentReadStream
= s;
245
_contentReadStream
= t;
256
_contentReadStream
= ts;
274
_contentReadStream
= s;
639
_contentReadStream
= null;
15 references to _contentReadStream
System.Net.Http (15)
System\Net\Http\HttpContent.cs (15)
210
if (
_contentReadStream
== null) // don't yet have a Stream
218
else if (
_contentReadStream
is Stream stream) // have a Stream
240
if (
_contentReadStream
== null) // don't yet have a Stream
248
else if (
_contentReadStream
is Task<Stream> t) // have a Task<Stream>
254
Debug.Assert(
_contentReadStream
is Stream, $"Expected a Stream, got ${
_contentReadStream
}");
255
Task<Stream> ts = Task.FromResult((Stream)
_contentReadStream
);
269
if (
_contentReadStream
== null) // don't yet have a Stream
277
else if (
_contentReadStream
is Stream s) // have a Stream
283
Debug.Assert(
_contentReadStream
is Task<Stream>, $"Expected a Task<Stream>, got ${
_contentReadStream
}");
284
Task<Stream> t = (Task<Stream>)
_contentReadStream
;
634
if (
_contentReadStream
!= null)
636
Stream? s =
_contentReadStream
as Stream ??
637
(
_contentReadStream
is Task<Stream> t && t.Status == TaskStatus.RanToCompletion ? t.Result : null);