Table of Contents

Class PreviewSession

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.Preview.dll

A document shown in the browser at Url as it is written: composed again and redrawn whenever Refresh() is called or code changes under dotnet watch, a layout failure shown on the page in place of it, until the session is disposed.

public sealed class PreviewSession : IDisposable
Inheritance
PreviewSession
Implements
Inherited Members

Remarks

The preview is served on this machine only. Pages are drawn when the browser asks for them after a change, not as the change happens, so a burst of edits costs one drawing.

Properties

Url

Where the preview is served.

public Uri Url { get; }

Property Value

Uri

Version

How many times the document has been asked to be composed afresh, counting the first.

public int Version { get; }

Property Value

int

Methods

Dispose()

Stops serving the preview.

public void Dispose()

Refresh()

Composes the document again and redraws it the next time the browser looks.

public void Refresh()