C# Class NuGet.PackageSourceProvider

Inheritance: IPackageSourceProvider
Afficher le fichier Open project: xero-github/Nuget Class Usage Examples

Méthodes publiques

Méthode Description
LoadPackageSources ( ) : IEnumerable

Returns PackageSources if specified in the config file. Else returns the default sources specified in the constructor. If no default values were specified, returns an empty sequence.

PackageSourceProvider ( ISettings settingsManager ) : System
PackageSourceProvider ( ISettings settingsManager, IEnumerable defaultSources ) : System

Creates a new PackageSourceProvider instance.

PackageSourceProvider ( ISettings settingsManager, IEnumerable defaultSources, PackageSource>.IDictionary migratePackageSources ) : System
SavePackageSources ( IEnumerable sources ) : void

Private Methods

Méthode Description
MigrateSources ( List loadedPackageSources ) : void
ReadCredential ( string sourceName ) : NetworkCredential

Method Details

LoadPackageSources() public méthode

Returns PackageSources if specified in the config file. Else returns the default sources specified in the constructor. If no default values were specified, returns an empty sequence.
public LoadPackageSources ( ) : IEnumerable
Résultat IEnumerable

PackageSourceProvider() public méthode

public PackageSourceProvider ( ISettings settingsManager ) : System
settingsManager ISettings
Résultat System

PackageSourceProvider() public méthode

Creates a new PackageSourceProvider instance.
public PackageSourceProvider ( ISettings settingsManager, IEnumerable defaultSources ) : System
settingsManager ISettings Specifies the settings file to use to read package sources.
defaultSources IEnumerable Specifies the sources to return if no package sources are available.
Résultat System

PackageSourceProvider() public méthode

public PackageSourceProvider ( ISettings settingsManager, IEnumerable defaultSources, PackageSource>.IDictionary migratePackageSources ) : System
settingsManager ISettings
defaultSources IEnumerable
migratePackageSources PackageSource>.IDictionary
Résultat System

SavePackageSources() public méthode

public SavePackageSources ( IEnumerable sources ) : void
sources IEnumerable
Résultat void