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

◆ SerializeToStreamAsync() [2/4]

override Task System.Net.Http.EmptyContent.SerializeToStreamAsync ( Stream stream,
TransportContext context,
CancellationToken cancellationToken )
inlineprotected

Definition at line 26 of file EmptyContent.cs.

27 {
28 if (!cancellationToken.IsCancellationRequested)
29 {
30 return SerializeToStreamAsync(stream, context);
31 }
33 }
override Task SerializeToStreamAsync(Stream stream, TransportContext context)
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.cs:3363

References System.cancellationToken, System.Threading.Tasks.Task< TResult >.FromCanceled(), System.Net.Http.EmptyContent.SerializeToStreamAsync(), and System.stream.