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)
252if (_contentReadStream == null) // don't yet have a Stream 260else if (_contentReadStream is Stream stream) // have a Stream 282if (_contentReadStream == null) // don't yet have a Stream 290else if (_contentReadStream is Task<Stream> t) // have a Task<Stream> 296Debug.Assert(_contentReadStream is Stream, $"Expected a Stream, got ${_contentReadStream}"); 297Task<Stream> ts = Task.FromResult((Stream)_contentReadStream); 311if (_contentReadStream == null) // don't yet have a Stream 319else if (_contentReadStream is Stream s) // have a Stream 325Debug.Assert(_contentReadStream is Task<Stream>, $"Expected a Task<Stream>, got ${_contentReadStream}"); 326Task<Stream> t = (Task<Stream>)_contentReadStream; 685if (_contentReadStream != null) 687Stream? s = _contentReadStream as Stream ?? 688(_contentReadStream is Task<Stream> t && t.Status == TaskStatus.RanToCompletion ? t.Result : null);