Table of Contents

Class BootstrapConfig

Namespace
ZeroInstall.Bootstrap
Assembly
ZeroInstall.Bootstrap.dll

Represents configuration bundled with the bootstrapper. This can be used to create a customized bootstrapper that uses Zero Install to run or integrate another application.

public record BootstrapConfig : IEquatable<BootstrapConfig>
Inheritance
object
BootstrapConfig
Implements

Constructors

BootstrapConfig(IniData, string?, FeedUri?, string?, string?, string?, FeedUri?, bool, long?)

Represents configuration bundled with the bootstrapper. This can be used to create a customized bootstrapper that uses Zero Install to run or integrate another application.

public BootstrapConfig(IniData IniData, string? KeyFingerprint, FeedUri? AppUri, string? AppName, string? AppArgs, string? IntegrateArgs, FeedUri? CatalogUri, bool CustomizableStorePath, long? EstimatedRequiredSpace)

Parameters

IniData IniData

The raw INI data parsed from the config file.

KeyFingerprint string

The GnuPG key fingerprint to trust for signing SelfUpdateUri or AppUri.

AppUri FeedUri

The feed URI of the target application to bootstrap.

AppName string

The name of the target application to bootstrap.

AppArgs string

Additional command-line arguments to pass to the application.

IntegrateArgs string

Command-line arguments to pass to 0install integrate. null to not call 0install integrate at all.

CatalogUri FeedUri

The URI of the catalog to replace the default catalog. Only applies if Zero Install is not already deployed.

CustomizableStorePath bool

Offer the user to choose a custom path for storing implementations.

EstimatedRequiredSpace long?

Show the estimated disk space required (in bytes). Only works when CustomizableStorePath is true.

BootstrapConfig(BootstrapConfig)

protected BootstrapConfig(BootstrapConfig original)

Parameters

original BootstrapConfig

Properties

AppArgs

Additional command-line arguments to pass to the application.

public string? AppArgs { get; init; }

Property Value

string

AppName

The name of the target application to bootstrap.

public string? AppName { get; init; }

Property Value

string

AppUri

The feed URI of the target application to bootstrap.

public FeedUri? AppUri { get; init; }

Property Value

FeedUri

CatalogUri

The URI of the catalog to replace the default catalog. Only applies if Zero Install is not already deployed.

public FeedUri? CatalogUri { get; init; }

Property Value

FeedUri

CustomizableStorePath

Offer the user to choose a custom path for storing implementations.

public bool CustomizableStorePath { get; init; }

Property Value

bool

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EstimatedRequiredSpace

Show the estimated disk space required (in bytes). Only works when CustomizableStorePath is true.

public long? EstimatedRequiredSpace { get; init; }

Property Value

long?

IniData

The raw INI data parsed from the config file.

public IniData IniData { get; init; }

Property Value

IniData

Instance

Provides a single instance of the BootstrapConfig loaded from an embedded or bundled file.

public static BootstrapConfig Instance { get; }

Property Value

BootstrapConfig

Exceptions

IOException

A problem occurred while reading the file.

UnauthorizedAccessException

Read access to the file is not permitted.

InvalidDataException

The file contains invalid config values.

IntegrateArgs

Command-line arguments to pass to 0install integrate. null to not call 0install integrate at all.

public string? IntegrateArgs { get; init; }

Property Value

string

KeyFingerprint

The GnuPG key fingerprint to trust for signing SelfUpdateUri or AppUri.

public string? KeyFingerprint { get; init; }

Property Value

string

Methods

Deconstruct(out IniData, out string?, out FeedUri?, out string?, out string?, out string?, out FeedUri?, out bool, out long?)

public void Deconstruct(out IniData IniData, out string? KeyFingerprint, out FeedUri? AppUri, out string? AppName, out string? AppArgs, out string? IntegrateArgs, out FeedUri? CatalogUri, out bool CustomizableStorePath, out long? EstimatedRequiredSpace)

Parameters

IniData IniData
KeyFingerprint string
AppUri FeedUri
AppName string
AppArgs string
IntegrateArgs string
CatalogUri FeedUri
CustomizableStorePath bool
EstimatedRequiredSpace long?

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BootstrapConfig?)

public virtual bool Equals(BootstrapConfig? other)

Parameters

other BootstrapConfig

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BootstrapConfig?, BootstrapConfig?)

public static bool operator ==(BootstrapConfig? left, BootstrapConfig? right)

Parameters

left BootstrapConfig
right BootstrapConfig

Returns

bool

operator !=(BootstrapConfig?, BootstrapConfig?)

public static bool operator !=(BootstrapConfig? left, BootstrapConfig? right)

Parameters

left BootstrapConfig
right BootstrapConfig

Returns

bool