Class ReclaimerStrategyDelegate
Strategy to make retention of packages:
- find all packages which available to delete
- Sort this packages by version
- Call delegate function
- Filter packages which are not dependencies for other packages
Inheritance
object
ReclaimerStrategyDelegate
Implements
Namespace: BuildSystem.Reclaimer.Strategy.Delegate
Assembly: BuildSystem.Core.dll
Syntax
public class ReclaimerStrategyDelegate : Object, IReclaimerStrategy
Constructors
ReclaimerStrategyDelegate(ILogger?, IReclaimerStrategyProps, string)
Strategy to make retention of packages:
- find all packages which available to delete
- Sort this packages by version
- Call delegate function
- Filter packages which are not dependencies for other packages
Declaration
public ReclaimerStrategyDelegate(ILogger? logger, IReclaimerStrategyProps prop, string tempFolder)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | _logger |
IReclaimerStrategyProps | prop | Properties which are the main for classes implementors of IBinder |
string | tempFolder | Unused at this moment temporary folder |
Fields
ClassIdent
Unique ident of class
Declaration
public const string ClassIdent = "ReclaimerStrategy.Delegate"
Field Value
Type | Description |
---|---|
string |
Methods
GetDeletingPackages(List<IPackageProps>, List<string>)
Calculates packages which should be deleted:
- find all packages which available to delete
- Sort this packages by version
- Call delegate function
- Filter packages which are not dependencies for other packages
Declaration
public List<IPackageProps> GetDeletingPackages(List<IPackageProps> packages, List<string> availableToDelete)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<><IPackageProps> | packages | |
System.Collections.Generic.List<><string> | availableToDelete |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><IPackageProps> |