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 an instance of the class.
public FileBasedPackageRepository(string cachePath)
| Parameter | Type | Description |
|---|---|---|
| cachePath | string | The path to use for package cache files. |
Properties
CachePath
The path to use for assembly and documentation cache files.
Methods
GetPackageDefinition(string)
Returns an IPackageDefinition based on cached package data, if it is available.
public IPackageDefinition? GetPackageDefinition(string path)
| Parameter | Type | Description |
|---|---|---|
| path | string | The root package path to examine. |
Returns
QueuePackageCacheUpdate(string, bool, bool)
Queues a package cache update operation, optionally recursing into child packages.
public 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. |
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()