Replay(IRenderingBackend, CancellationToken, IProgress?) Method

Definition

Assembly Broadside.dll

Calls backend once for every operation of the list, in order, checking cancellationToken before each and reporting progress.

public void Replay(IRenderingBackend backend, CancellationToken cancellationToken, IProgress<double>? progress)

Parameters

backend
IRenderingBackend

The backend that draws.

cancellationToken
CancellationToken

Cancels the replay before its next operation.

progress
IProgress<Double>

Receives the share of the operations handed over so far, from 0 to 1, synchronously on this thread every 1,024 operations and once with exactly 1 at the end; null for none.

Remarks

Viewer capability 2 (issue #97). Allocates nothing. To stop after a time budget and resume later, use BeginReplay(IRenderingBackend, CancellationToken, IProgress<Double>?).