C# Class NuGet.InstallWalker

Inheritance: PackageWalker, IPackageOperationResolver
Show file Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Property Type Description
CreatePackageConflictException System.InvalidOperationException
GetDependents IEnumerable
InstallWalker System
TryUpdate bool
Uninstall void

Public Methods

Method Description
InstallWalker ( IPackageRepository localRepository, IPackageRepository sourceRepository, FrameworkName targetFramework, ILogger logger, bool ignoreDependencies, bool allowPrereleaseVersions ) : System
InstallWalker ( IPackageRepository localRepository, IPackageRepository sourceRepository, IPackageConstraintProvider constraintProvider, FrameworkName targetFramework, ILogger logger, bool ignoreDependencies, bool allowPrereleaseVersions ) : System
ResolveOperations ( IPackage package ) : IEnumerable

Protected Methods

Method Description
GetConflict ( IPackage package ) : ConflictResult
OnAfterPackageWalk ( IPackage package ) : void
OnBeforePackageWalk ( IPackage package ) : void
OnDependencyResolveError ( PackageDependency dependency ) : void
ResolveDependency ( PackageDependency dependency ) : IPackage

Private Methods

Method Description
CreatePackageConflictException ( IPackage resolvedPackage, IPackage package, IEnumerable dependents ) : InvalidOperationException
GetDependents ( ConflictResult conflict ) : IEnumerable
InstallWalker ( IPackageRepository localRepository, IPackageRepository sourceRepository, ILogger logger, bool ignoreDependencies, bool allowPrereleaseVersions ) : System
TryUpdate ( IEnumerable dependents, ConflictResult conflictResult, IPackage package, IEnumerable &incompatiblePackages ) : bool
Uninstall ( IPackage package, IDependentsResolver dependentsResolver, IPackageRepository repository ) : void

Method Details

GetConflict() protected method

protected GetConflict ( IPackage package ) : ConflictResult
package IPackage
return ConflictResult

InstallWalker() public method

public InstallWalker ( IPackageRepository localRepository, IPackageRepository sourceRepository, FrameworkName targetFramework, ILogger logger, bool ignoreDependencies, bool allowPrereleaseVersions ) : System
localRepository IPackageRepository
sourceRepository IPackageRepository
targetFramework FrameworkName
logger ILogger
ignoreDependencies bool
allowPrereleaseVersions bool
return System

InstallWalker() public method

public InstallWalker ( IPackageRepository localRepository, IPackageRepository sourceRepository, IPackageConstraintProvider constraintProvider, FrameworkName targetFramework, ILogger logger, bool ignoreDependencies, bool allowPrereleaseVersions ) : System
localRepository IPackageRepository
sourceRepository IPackageRepository
constraintProvider IPackageConstraintProvider
targetFramework FrameworkName
logger ILogger
ignoreDependencies bool
allowPrereleaseVersions bool
return System

OnAfterPackageWalk() protected method

protected OnAfterPackageWalk ( IPackage package ) : void
package IPackage
return void

OnBeforePackageWalk() protected method

protected OnBeforePackageWalk ( IPackage package ) : void
package IPackage
return void

OnDependencyResolveError() protected method

protected OnDependencyResolveError ( PackageDependency dependency ) : void
dependency PackageDependency
return void

ResolveDependency() protected method

protected ResolveDependency ( PackageDependency dependency ) : IPackage
dependency PackageDependency
return IPackage

ResolveOperations() public method

public ResolveOperations ( IPackage package ) : IEnumerable
package IPackage
return IEnumerable