Show / Hide Table of Contents

Interface IPackageManager

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

Namespace: ZeroInstall.Services.Native
Assembly: ZeroInstall.Services.dll
Syntax
public interface IPackageManager
Remarks

Implementations of this interface are immutable and thread-safe.

Methods

Lookup(ImplementationSelection)

Looks up the specific ExternalImplementation an ImplementationSelection was based on.

Declaration
ExternalImplementation Lookup(ImplementationSelection selection)
Parameters
Type Name Description
ImplementationSelection selection

The implementation selection to look up.

Returns
Type Description
ExternalImplementation

The ExternalImplementation; null if selection does not refer to a package known to this package manager.

Query(PackageImplementation, String[])

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

Declaration
IEnumerable<ExternalImplementation> Query(PackageImplementation package, params string[] distributions)
Parameters
Type Name Description
PackageImplementation package

The definition of the package to look for.

String[] distributions

Specifies the distributions to check for matching packages. Leave empty to check in all available distributions.

Returns
Type Description
IEnumerable<ExternalImplementation>

See Also

PackageImplementation
ExternalImplementation
ExternalRetrievalMethod
In This Article
Back to top Copyright Bastian Eicher et al