Docs · API reference · Verso.Abstractions

ExtensionConsentInfo Class#

Describes something that requires user consent before it is loaded or installed.

public sealed record ExtensionConsentInfo : System.IEquatable<Verso.Abstractions.ExtensionConsentInfo>

Inheritance System.Object → ExtensionConsentInfo

Implements System.IEquatable<ExtensionConsentInfo>

Constructors#

ExtensionConsentInfo(string, string, string) Constructor#

Describes something that requires user consent before it is loaded or installed.

public ExtensionConsentInfo(string PackageId, string? Version, string Source="cell");

Parameters#

PackageId System.String

The NuGet package ID, local assembly file name, or distribution name.

Version System.String

Optional requested version (null for latest or local files).

Source System.String

Where the request originated, e.g. "cell", "imported from foo.verso", "session-generated local assembly", or "import cv2".

Properties#

Kind Property#

What the request covers. Defaults to an extension package.

public Verso.Abstractions.ConsentKind Kind { get; init; }

Property Value#

ConsentKind

PackageId Property#

The NuGet package ID, local assembly file name, or distribution name.

public string PackageId { get; init; }

Property Value#

System.String

Source Property#

Where the request originated, e.g. "cell", "imported from foo.verso", "session-generated local assembly", or "import cv2".

public string Source { get; init; }

Property Value#

System.String

Target Property#

Optional description of where the thing will go, such as the environment a distribution is installed into. Shown once for the whole request rather than per item.

public string? Target { get; init; }

Property Value#

System.String

Version Property#

Optional requested version (null for latest or local files).

public string? Version { get; init; }

Property Value#

System.String