ProGet SDK Reference
Version:

PackageStore Class

Represents a store for package files.

Syntax

public class PackageStore : Inedo.Diagnostics.ILogger

Constructors

Name Description
PackageStore

Initializes a new instance of the PackageStore class.

Events

Name Description
MessageLogged

Occurs when a message has been logged.

Properties

Name Description
Feed

Gets the feed.

Methods

Name Description
CleanAsync(IPackageIndex packageIndex)

Performs a cleanup and consistency check for the package store.

CreatePackageAsync(PackageStorePackageId packageId)

Returns an empty stream which can be used to write a new package to the store.

DeletePackageAsync(PackageStorePackageId packageId)

Deletes a package from the store.

Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources.

GetDescription

Returns a friendly description of the package store and its current configuration.

GetRelativePackagePath(PackageStorePackageId id)

Returns a string containing a standard relative package path for the specified package.

GetRelativePackagePath(PackageStorePackageId id, char directorySeparator)

Returns a string containing a standard relative package path for the specified package.

Log(Inedo.Diagnostics.MessageLevel logLevel, string message)

Writes the specified message to the corresponding log.

OnMessageLogged(Inedo.Diagnostics.LogMessageEventArgs e)

Raises the MessageLogged event.

OpenPackageAsync(PackageStorePackageId packageId)

Returns a stream backed by the specified package if it exists; otherwise returns null (Nothing in Visual Basic).