C# Class NuGet.PackageSourceProvider

Inheritance: IPackageSourceProvider
Datei anzeigen Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method 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

Method Description
MigrateSources ( List loadedPackageSources ) : void
ReadCredential ( string sourceName ) : NetworkCredential

Method Details

LoadPackageSources() public method

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
return IEnumerable

PackageSourceProvider() public method

public PackageSourceProvider ( ISettings settingsManager ) : System
settingsManager ISettings
return System

PackageSourceProvider() public method

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.
return System

PackageSourceProvider() public method

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

SavePackageSources() public method

public SavePackageSources ( IEnumerable sources ) : void
sources IEnumerable
return void