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

◆ SerializeToStreamAsyncCore()

async Task System.Net.Http.MultipartContent.SerializeToStreamAsyncCore ( Stream stream,
TransportContext context,
CancellationToken cancellationToken )
inlineprotectedinherited

Definition at line 393 of file MultipartContent.cs.

394 {
395 _ = 3;
396 try
397 {
401 {
403 output.SetLength(0L);
405 output.Position = 0L;
407 await content.CopyToAsync(stream, context, cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
408 }
410 }
411 catch (Exception message)
412 {
413 if (System.Net.NetEventSource.Log.IsEnabled())
414 {
415 System.Net.NetEventSource.Error(this, message, "SerializeToStreamAsyncCore");
416 }
417 throw;
418 }
419 }
readonly List< HttpContent > _nestedContent
static ValueTask EncodeStringToStreamAsync(Stream stream, string input, CancellationToken cancellationToken)
void SerializeHeadersToStream(Stream stream, HttpContent content, bool writeDivider)
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)

References System.Net.Http.MultipartContent._boundary, System.Net.Http.MultipartContent._nestedContent, System.cancellationToken, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Net.Http.HttpContent.CopyToAsync(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Net.Http.MultipartContent.EncodeStringToStreamAsync(), System.Net.NetEventSource.Error(), System.L, System.Net.NetEventSource.Log, System.Net.Http.MultipartContent.SerializeHeadersToStream(), and System.stream.

Referenced by System.Net.Http.MultipartContent.SerializeToStreamAsync(), System.Net.Http.MultipartContent.SerializeToStreamAsync(), and System.Net.Http.MultipartFormDataContent.SerializeToStreamAsync().