Class CliBootstrapHandler
- Namespace
- ZeroInstall.Bootstrap
- Assembly
- ZeroInstall.Bootstrap.dll
Informs the user about the progress of tasks and ask questions during the bootstrap process using console output.
public class CliBootstrapHandler : CliTaskHandler, IBootstrapHandler, ITaskHandler, IDisposable
- Inheritance
-
objectCliBootstrapHandler
- Implements
- Inherited Members
Remarks
This class is thread-safe.
Constructors
CliBootstrapHandler()
public CliBootstrapHandler()
Properties
Background
Hides the GUI. Has no effect when IsGui is false.
public bool Background { get; set; }
Property Value
IsGui
Indicates whether this handler is a GUI.
public bool IsGui { get; }
Property Value
Methods
GetCustomStorePath(bool, string?)
Asks the user to provide a custom path for storing implementations.
public string? GetCustomStorePath(bool machineWide, string? currentPath)
Parameters
machineWideboolAsk for a path for machine-wide deployment instead of just for the current user.
currentPathstringThe currently set custom path for storing implementations;
nullif using default location.
Returns
- string
The path to a directory;
nullor empty to use the default location.
Exceptions
- OperationCanceledException
The user cancelled the operation.