C# Class NuGet.PackageMarker

Keeps track of a package's visited state while walking a graph. It also acts as a package repository and a dependents resolver for the live graph.
Inheritance: IPackageRepository, IDependentsResolver
Mostra file Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
AddDependent ( IPackage package, IPackage dependency ) : void

While walking the package graph we call this to update dependents.

Clear ( ) : void
Contains ( IPackage package ) : bool
IsCycle ( IPackage package ) : bool
IsVersionCycle ( string packageId ) : bool
IsVisited ( IPackage package ) : bool
MarkProcessing ( IPackage package ) : void
MarkVisited ( IPackage package ) : void

Private Methods

Method Description
GetLookup ( string packageId, bool createEntry = false ) : VisitedState>.Dictionary
IDependentsResolver ( IPackage package ) : IEnumerable
IDependentsResolver ( IPackage package, bool skipFailures ) : IEnumerable
IPackageRepository ( ) : IQueryable
IPackageRepository ( IPackage package ) : void

Method Details

AddDependent() public method

While walking the package graph we call this to update dependents.
public AddDependent ( IPackage package, IPackage dependency ) : void
package IPackage
dependency IPackage
return void

Clear() public method

public Clear ( ) : void
return void

Contains() public method

public Contains ( IPackage package ) : bool
package IPackage
return bool

IsCycle() public method

public IsCycle ( IPackage package ) : bool
package IPackage
return bool

IsVersionCycle() public method

public IsVersionCycle ( string packageId ) : bool
packageId string
return bool

IsVisited() public method

public IsVisited ( IPackage package ) : bool
package IPackage
return bool

MarkProcessing() public method

public MarkProcessing ( IPackage package ) : void
package IPackage
return void

MarkVisited() public method

public MarkVisited ( IPackage package ) : void
package IPackage
return void