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

MultipartFileStreamProvider

An IMultipartStreamProvider suited for writing each MIME body parts of the MIME multipart message to a file using a FileStream.
public Collection<string> BodyPartFileNames { get; }

Gets an <see cref="T:System.Collections.Generic.IEnumerable`1" /> containing the files names of MIME body part written to file.

public MultipartFileStreamProvider(string rootPath)

Initializes a new instance of the MultipartFileStreamProvider class.

public MultipartFileStreamProvider(string rootPath, int bufferSize)

Initializes a new instance of the MultipartFileStreamProvider class.

public virtual string GetLocalFileName(HttpContentHeaders headers)

Gets the name of the local file which will be combined with the root path to create an absolute file name where the contents of the current MIME body part will be stored.

public virtual Stream GetStream(HttpContentHeaders headers)

This body part stream provider examines the headers provided by the MIME multipart parser and decides which FileStream to write the body part to.