C# Class NuGet.UninstallWalker

Inheritance: PackageWalker, IPackageOperationResolver
Datei anzeigen Open project: xero-github/Nuget Class Usage Examples

Private Properties

Property Type Description
GetDependents IEnumerable
IsConnected bool

Public Methods

Method Description
ResolveOperations ( IPackage package ) : IEnumerable
UninstallWalker ( IPackageRepository repository, IDependentsResolver dependentsResolver, ILogger logger, bool removeDependencies, bool forceRemove ) : System

Protected Methods

Method Description
CreatePackageHasDependentsException ( IPackage package, IEnumerable dependents ) : InvalidOperationException
OnAfterPackageWalk ( IPackage package ) : void
OnAfterResolveDependency ( IPackage package, IPackage dependency ) : bool
OnBeforePackageWalk ( IPackage package ) : void
OnDependencyResolveError ( PackageDependency dependency ) : void
ResolveDependency ( PackageDependency dependency ) : IPackage
WarnRemovingPackageBreaksDependents ( IPackage package, IEnumerable dependents ) : void

Private Methods

Method Description
GetDependents ( IPackage package ) : IEnumerable
IsConnected ( IPackage package ) : bool

Method Details

CreatePackageHasDependentsException() protected method

protected CreatePackageHasDependentsException ( IPackage package, IEnumerable dependents ) : InvalidOperationException
package IPackage
dependents IEnumerable
return System.InvalidOperationException

OnAfterPackageWalk() protected method

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

OnAfterResolveDependency() protected method

protected OnAfterResolveDependency ( IPackage package, IPackage dependency ) : bool
package IPackage
dependency IPackage
return bool

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

UninstallWalker() public method

public UninstallWalker ( IPackageRepository repository, IDependentsResolver dependentsResolver, ILogger logger, bool removeDependencies, bool forceRemove ) : System
repository IPackageRepository
dependentsResolver IDependentsResolver
logger ILogger
removeDependencies bool
forceRemove bool
return System

WarnRemovingPackageBreaksDependents() protected method

protected WarnRemovingPackageBreaksDependents ( IPackage package, IEnumerable dependents ) : void
package IPackage
dependents IEnumerable
return void