Table of Contents

Method GetMultipartFormContentAsync

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

GetMultipartFormContentAsync(CancellationToken)

Asynchronously reads the request body and obtains a MultipartFormCollection from it.

public Task<MultipartFormCollection> GetMultipartFormContentAsync(CancellationToken cancellation = default)

Parameters

cancellation CancellationToken

A CancellationToken to cancel the asynchronous operation.

Returns

Task<MultipartFormCollection>

A Task that represents the asynchronous operation, containing a MultipartFormCollection instance representing the multipart form content of the request.

Exceptions

HttpRequestException

If an error occurs while parsing the multipart form content.