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

HttpContentMultipartExtensions

public static class HttpContentMultipartExtensions
Extension methods to read MIME multipart entities from HttpContent instances.
public static bool IsMimeMultipartContent(this HttpContent content)

Determines whether the specified content is MIME multipart content.

public static bool IsMimeMultipartContent(this HttpContent content, string subtype)

Determines whether the specified content is MIME multipart content with the specified subtype.

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.

public static Task<T> ReadAsMultipartAsync<T>(this HttpContent content, T streamProvider) where T : MultipartStreamProvider

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written.

public static Task<T> ReadAsMultipartAsync<T>(this HttpContent content, T streamProvider, CancellationToken cancellationToken) where T : MultipartStreamProvider

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written.

public static Task<T> ReadAsMultipartAsync<T>(this HttpContent content, T streamProvider, int bufferSize) where T : MultipartStreamProvider

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.

public static Task<T> ReadAsMultipartAsync<T>(this HttpContent content, T streamProvider, int bufferSize, CancellationToken cancellationToken) where T : MultipartStreamProvider

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.