Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SerializeToStreamAsync() [2/4]

override async Task System.Net.Http.HttpConnectionResponseContent.SerializeToStreamAsync ( Stream stream,
TransportContext context,
CancellationToken cancellationToken )
inlinesealedprotected

Definition at line 45 of file HttpConnectionResponseContent.cs.

46 {
47 if (stream == null)
48 {
49 throw new ArgumentNullException("stream");
50 }
51 using Stream contentStream = ConsumeStream();
52 await contentStream.CopyToAsync(stream, 8192, cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
53 }

References System.cancellationToken, System.Net.Http.HttpConnectionResponseContent.ConsumeStream(), and System.stream.