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)
210if (_contentReadStream == null) // don't yet have a Stream 218else if (_contentReadStream is Stream stream) // have a Stream 240if (_contentReadStream == null) // don't yet have a Stream 248else if (_contentReadStream is Task<Stream> t) // have a Task<Stream> 254Debug.Assert(_contentReadStream is Stream, $"Expected a Stream, got ${_contentReadStream}"); 255Task<Stream> ts = Task.FromResult((Stream)_contentReadStream); 269if (_contentReadStream == null) // don't yet have a Stream 277else if (_contentReadStream is Stream s) // have a Stream 283Debug.Assert(_contentReadStream is Task<Stream>, $"Expected a Task<Stream>, got ${_contentReadStream}"); 284Task<Stream> t = (Task<Stream>)_contentReadStream; 634if (_contentReadStream != null) 636Stream? s = _contentReadStream as Stream ?? 637(_contentReadStream is Task<Stream> t && t.Status == TaskStatus.RanToCompletion ? t.Result : null);