Skip to content

PackageManagementService

Garrett Serack edited this page May 19, 2014 · 5 revisions

PackageManagementService class

public class PackageManagementService {
	public IEnumerable<string> PackageProviderNames {get;}
    public IEnumerable<PackageProvider> PackageProviders {get;}
	public PackageProvider SelectProvider(string providerName);
	public IEnumerable<PackageProvider> SelectProviders(string providerName, IEnumerable<string> sourceNames);  
}

Property: PackageProviderNames

Description

Returns a collection with the names of all the registered PackageProvider instances.

Return Value

An IEnumerable<string> with the names of all the registered PackageProvider instances.

Exceptions

Not expected to throw exceptions.

Property: PackageProviders

Description

Returns a collection with the instances of all the registered PackageProviders.

see PackageProvider Instance

Return Value

An IEnumerable<PackageProvider> with all the registered PackageProvider instances.

Exceptions

Not expected to throw exceptions.

Method: SelectProvider

Description

Returns a single PackageProvider instance that matches the given providerName.

see PackageProvider Instance

Example

PackageProvider SelectProvider(string providerName)

Return Value

Returns a single PackageProvider instance that matches the given providerName.

If the caller passes in null, an empty string, or a provider with no match, null is returned.

Exceptions

Not expected to throw an exception.

Method: SelectProviders

Description

Returns a collection of PackageProvider instances that matches the given providerName and sources.

see PackageProvider Instance

Example

IEnumerable<PackageProvider> SelectProviders(string providerName, IEnumerable<string> sources)

Return Value

Returns a collection of PackageProvider instances that matches the given providerName and sources.

If there are no matches found given the critetria, an empty collection is returned.

Exceptions

Not expected to throw an exception.