Interface IBootstrapHandler
- Namespace
- ZeroInstall.Bootstrap
- Assembly
- ZeroInstall.Bootstrap.dll
Used to run and track ITasks and ask the user questions during the bootstrap process.
public interface IBootstrapHandler : ITaskHandler, IDisposable
- Inherited Members
Remarks
Implementations of this interface are thread-safe. BootstrapProcess disposes the handler when handing over to Zero Install, so that the UI closes while Zero Install runs. The creator of the handler is still expected to dispose it, so Dispose() must be safe to call more than once.
Properties
Background
Hides the GUI. Has no effect when IsGui is false.
bool Background { get; set; }
Property Value
IsGui
Indicates whether this handler is a GUI.
bool IsGui { get; }
Property Value
Methods
GetCustomStorePath(bool, string?)
Asks the user to provide a custom path for storing implementations.
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.