FileBasedPackageRepository Class
Represents an IPackageRepository that can cache data in the file system.
public class FileBasedPackageRepository : IPackageRepository
- Inheritance:
- Object Object
- Implements:
- IPackageRepository
Constructors
FileBasedPackageRepository(String)
Initializes a new instance of the FileBasedPackageRepository
class.
public FileBasedPackageRepository(string cachePath)
Parameter | Type | Description |
---|---|---|
cachePath | String | The path to use for package cache files. |
Properties
CachePath
Gets or sets the path to use for assembly and documentation cache files.
public string CachePath { get; set; }
Property Value
- String:
The path to use for assembly and documentation cache files.
Methods
GetPackageDefinition(PythonVersion, String)
Returns an IPackageDefinition based on cached package data, if it is available.
public IPackageDefinition GetPackageDefinition(PythonVersion version, string path)
Parameter | Type | Description |
---|---|---|
version | PythonVersion | The PythonVersion to use for parsing. |
path | String | The root package path to examine. |
Returns
- IPackageDefinition:
The cached IPackageDefinition data.
QueuePackageCacheUpdate(PythonVersion, String, Boolean, Boolean)
Queues a package cache update operation, optionally recursing into child packages.
public void QueuePackageCacheUpdate(PythonVersion version, string path, bool isRootPath, bool recurse)
Parameter | Type | Description |
---|---|---|
version | PythonVersion | The PythonVersion to use for parsing. |
path | String | The package path to examine. |
isRootPath | Boolean | Whether this is a root path. |
recurse | Boolean | Whether to recurse into child packages. |