OpenAsync(HttpClient, Uri, CancellationToken) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Opens the remote PDF file at uri through HTTP range requests.

public static Task<PdfDocument> OpenAsync(HttpClient httpClient, Uri uri, CancellationToken cancellationToken)

Parameters

httpClient
HttpClient

The client the requests go through; not disposed. It stays in use until the document is disposed.

uri
Uri?

The file's address.

cancellationToken
CancellationToken

Cancels the requests made while opening.

Returns

Task<PdfDocument>
The document. Dispose it when done.

Remarks

Spec #33, viewer capability 5. The same as OpenAsync(HttpClient, Uri, CancellationToken) on an engine with default options.