Open(Uri, DisplayIntent) Method

Definition

Assembly Broadside.Viewer.Blazor.dll

Has the worker open a document from an address through HTTP range requests (as OpenAsync(HttpClient, Uri, ViewerOptions?, CancellationToken) does on the page) and returns the renderer a session opened from the same address uses, or null when the worker is not running.

public static IRemoteTileRenderer? Open(Uri address, DisplayIntent intent)

Parameters

address
Uri?

The document's absolute address (the worker resolves nothing against the page).

intent
DisplayIntent

The display intent the session renders with.

Returns

IRemoteTileRenderer
The renderer (the session owns and disposes it), or null.