Zero Install .NET API 2.20.0
ZeroInstall.Services.Native.IPackageManager Interface Reference

Handles packages provided by the operating system's native package managers rather than Zero Install itself. More...

Inheritance diagram for ZeroInstall.Services.Native.IPackageManager:
ZeroInstall.Services.Native.PackageManagerBase ZeroInstall.Services.Native.StubPackageManager ZeroInstall.Services.Native.WindowsPackageManager

Public Member Functions

IEnumerable< ExternalImplementationQuery (PackageImplementation package, params string[] distributions)
 Queries the package manager for all ExternalImplementations that match a specific PackageImplementation definition. More...
 
ExternalImplementation Lookup (ImplementationSelection selection)
 Looks up the specific ExternalImplementation an ImplementationSelection was based on. More...
 

Detailed Description

Handles packages provided by the operating system's native package managers rather than Zero Install itself.

See also
PackageImplementation, ExternalImplementation, ExternalRetrievalMethod

Implementations of this interface are immutable and thread-safe.

Member Function Documentation

◆ Lookup()

ExternalImplementation ZeroInstall.Services.Native.IPackageManager.Lookup ( ImplementationSelection  selection)

Looks up the specific ExternalImplementation an ImplementationSelection was based on.

Parameters
selectionThe implementation selection to look up.
Exceptions
ImplementationNotFoundExceptionselection does not refer to a package known to this package manager.

Implemented in ZeroInstall.Services.Native.PackageManagerBase, and ZeroInstall.Services.Native.StubPackageManager.

◆ Query()

IEnumerable< ExternalImplementation > ZeroInstall.Services.Native.IPackageManager.Query ( PackageImplementation  package,
params string[]  distributions 
)

Queries the package manager for all ExternalImplementations that match a specific PackageImplementation definition.

Parameters
packageThe definition of the package to look for.
distributionsSpecifies the distributions to check for matching packages. Leave empty to check in all available distributions.

Implemented in ZeroInstall.Services.Native.PackageManagerBase, and ZeroInstall.Services.Native.StubPackageManager.


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