<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.1.0" />

MultipartStreamProvider

public abstract class MultipartStreamProvider
Represents a stream provider that examines the headers provided by the MIME multipart parser as part of the MIME multipart extension methods (see HttpContentMultipartExtensions) and decides what kind of stream to return for the body part to be written to.
public Collection<HttpContent> Contents { get; }

Gets or sets the contents for this MultipartStreamProvider.

Initializes a new instance of the MultipartStreamProvider class.

Executes the post processing operation for this MultipartStreamProvider.

public virtual Task ExecutePostProcessingAsync(CancellationToken cancellationToken)

Executes the post processing operation for this MultipartStreamProvider.

public abstract Stream GetStream(HttpContent parent, HttpContentHeaders headers)

Gets the stream where to write the body part to. This method is called when a MIME multipart body part has been parsed.