-
Notifications
You must be signed in to change notification settings - Fork 190
PackageManagementService
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);
}
Returns a collection with the names of all the registered PackageProvider
instances.
An IEnumerable<string>
with the names of all the registered PackageProvider
instances.
Not expected to throw exceptions.
Returns a collection with the instances of all the registered PackageProvider
s.
An IEnumerable<PackageProvider>
with all the registered PackageProvider
instances.
Not expected to throw exceptions.
Returns a single PackageProvider
instance that matches the given providerName.
PackageProvider SelectProvider(string providerName)
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.
Not expected to throw an exception.
Returns a collection of PackageProvider
instances that matches the given providerName and sources.
IEnumerable<PackageProvider> SelectProviders(string providerName, IEnumerable<string> sources)
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.
Not expected to throw an exception.