Zero Install .NET API  2.21.0
ZeroInstall.Client.ZeroInstallClient Class Reference

Client for invoking Zero Install commands from within other applications. More...

Inheritance diagram for ZeroInstall.Client.ZeroInstallClient:
ZeroInstall.Client.IZeroInstallClient

Public Member Functions

 ZeroInstallClient (string commandLine, string? guiCommandLine=null)
 Creates a new Zero Install client. More...
 
async Task< SelectionsSelectAsync (Requirements requirements, bool refresh=false, bool offline=false)
 Selects a program and compatible versions of all of its dependencies.
 
async Task< SelectionsDownloadAsync (Requirements requirements, bool refresh=false)
 Downloads a program and compatible versions of all of its dependencies.
 
void Run (Requirements requirements, bool refresh=false, bool needsTerminal=false, params string[] arguments)
 Runs a program via Zero Install.
 
Process RunWithProcess (Requirements requirements, bool refresh=false, bool needsTerminal=false, params string[] arguments)
 Runs a program via Zero Install and returns the process.
 
async Task< ISet< string > > GetIntegrationAsync (FeedUri uri)
 Returns the desktop integration categories that are currently applied for a specific feed.
 
async Task IntegrateAsync (FeedUri uri, IEnumerable< string >? add=null, IEnumerable< string >? remove=null)
 Adds an application to the application list (if missing) and integrates it into the desktop environment.
 
async Task RemoveAsync (FeedUri uri)
 Removes an application from the application list and undoes any desktop environment integration.
 
async Task FetchAsync (Implementation implementation)
 Downloads a set of Implementations.
 

Package Functions

 ZeroInstallClient (ISubProcess subProcess, IProcessLauncher launcher, IProcessLauncher? guiLauncher=null)
 Creates a new Zero Install client. More...
 

Properties

static IZeroInstallClient Detect [get]
 Creates a Zero Install client by detecting the location of 0install using environment variables or the Windows registry. More...
 

Detailed Description

Client for invoking Zero Install commands from within other applications.

Constructor & Destructor Documentation

◆ ZeroInstallClient() [1/2]

ZeroInstall.Client.ZeroInstallClient.ZeroInstallClient ( ISubProcess  subProcess,
IProcessLauncher  launcher,
IProcessLauncher guiLauncher = null 
)
inlinepackage

Creates a new Zero Install client.

Parameters
subProcessUsed to launch 0install, captures its output and waits until it has terminated.
launcherUsed to launch 0install as ane external process.
guiLauncherUsed to launch 0install-win as ane external process.

◆ ZeroInstallClient() [2/2]

ZeroInstall.Client.ZeroInstallClient.ZeroInstallClient ( string  commandLine,
string?  guiCommandLine = null 
)
inline

Creates a new Zero Install client.

Parameters
commandLineThe command-line used to launch 0install. Whitespace must be properly escaped.
guiCommandLineThe optional command-line used to launch 0install-win. Whitespace must be properly escaped.

Property Documentation

◆ Detect

IZeroInstallClient ZeroInstall.Client.ZeroInstallClient.Detect
staticget

Creates a Zero Install client by detecting the location of 0install using environment variables or the Windows registry.


The documentation for this class was generated from the following file: