1 instantiation of EmptyReadStream
System.Net.Http (1)
System\Net\Http\EmptyReadStream.cs (1)
12
internal static EmptyReadStream Instance { get; } = new
EmptyReadStream
();
9 references to EmptyReadStream
System.Net.Http (9)
System\Net\Http\EmptyContent.cs (3)
30
EmptyReadStream
.Instance;
33
Task.FromResult<Stream>(
EmptyReadStream
.Instance);
39
internal override Stream? TryCreateContentReadStream() =>
EmptyReadStream
.Instance;
System\Net\Http\EmptyReadStream.cs (1)
12
internal static
EmptyReadStream
Instance { get; } = new EmptyReadStream();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1091
responseContent.SetStream(
EmptyReadStream
.Instance);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
245
responseContent.SetStream(
EmptyReadStream
.Instance);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (3)
782
responseStream =
EmptyReadStream
.Instance;
818
responseStream =
EmptyReadStream
.Instance;
2080
Debug.Assert(responseStream != null || stream is
EmptyReadStream
);