Docs · API reference · Verso.Abstractions

LayoutRendererMountContext Class#

Context provided to OnRendererMountedAsync(LayoutRendererMountContext) describing a freshly mounted renderer instance.

public sealed class LayoutRendererMountContext

Inheritance System.Object → LayoutRendererMountContext

Properties#

CancellationToken Property#

Cancellation token for the mount operation.

public System.Threading.CancellationToken CancellationToken { get; init; }

Property Value#

System.Threading.CancellationToken

ExtensionId Property#

The owning extension's ExtensionId. Together with LayoutId this forms the identity pair the host routed against.

public string ExtensionId { get; init; }

Property Value#

System.String

Frame Property#

Push channel for sending ext/* messages to the renderer while it is alive. The channel becomes invalid after the matching OnRendererUnmountedAsync(LayoutRendererUnmountContext) returns.

public Verso.Abstractions.ILayoutFrameChannel Frame { get; init; }

Property Value#

ILayoutFrameChannel

FrameInstanceId Property#

Host-allocated, opaque token identifying this renderer instance. Stable for the life of the mount and matches the FrameInstanceId delivered on teardown.

public string FrameInstanceId { get; init; }

Property Value#

System.String

Isolation Property#

Isolation boundary the renderer was instantiated under.

public Verso.Abstractions.LayoutRendererIsolation Isolation { get; init; }

Property Value#

LayoutRendererIsolation

LayoutId Property#

The LayoutId the renderer instance belongs to.

public string LayoutId { get; init; }

Property Value#

System.String

Verso Property#

Verso context providing access to variables, theme, notebook operations, and the extension host.

public Verso.Abstractions.IVersoContext Verso { get; init; }

Property Value#

IVersoContext