In This Article

IPackageRepository Interface

Provides the base requirements for a class that manages package instances and caching of data as appropriate.

public interface IPackageRepository

Methods

GetPackageDefinition(string)

Returns an IPackageDefinition based on cached package data, if it is available.

IPackageDefinition? GetPackageDefinition(string path)
Parameter Type Description
path string

The root package path to examine.

Returns

IPackageDefinition

QueuePackageCacheUpdate(string, bool, bool)

Queues a package cache update operation, optionally recursing into child packages.

void QueuePackageCacheUpdate(string path, bool isRootPath, bool recurse)
Parameter Type Description
path string

The root package path to examine.

isRootPath bool

Whether this is a root path.

recurse bool

Whether to recurse into child packages.

Extension Methods