Table of Contents

Class CachingSourceProvider

Namespace
NuGet.Protocol
Assembly
NuGet.Protocol.dll
public class CachingSourceProvider : ISourceRepositoryProvider
Inheritance
CachingSourceProvider
Implements
Inherited Members
Extension Methods

Constructors

CachingSourceProvider(IPackageSourceProvider)

public CachingSourceProvider(IPackageSourceProvider packageSourceProvider)

Parameters

packageSourceProvider IPackageSourceProvider

Properties

PackageSourceProvider

public IPackageSourceProvider PackageSourceProvider { get; }

Property Value

IPackageSourceProvider

Methods

AddSourceRepository(SourceRepository)

public void AddSourceRepository(SourceRepository source)

Parameters

source SourceRepository

CreateRepository(PackageSource)

public SourceRepository CreateRepository(PackageSource source)

Parameters

source PackageSource

Returns

SourceRepository

CreateRepository(PackageSource, FeedType)

public SourceRepository CreateRepository(PackageSource source, FeedType type)

Parameters

source PackageSource
type FeedType

Returns

SourceRepository

CreateRepository(string)

public SourceRepository CreateRepository(string source)

Parameters

source string

Returns

SourceRepository

GetRepositories()

public IEnumerable<SourceRepository> GetRepositories()

Returns

IEnumerable<SourceRepository>