C# Class withSIX.Sync.Core.Packages.PackageManager

Inheritance: IEnableLogging
Mostra file Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Public Methods

Method Description
Checkout ( IReadOnlyCollection packageNames, bool useFullNameOverride = null ) : Task>
CleanPackages ( IReadOnlyCollection keepVersions ) : Task>
CleanPackages ( int limit, IReadOnlyCollection keepVersions ) : Task>
DeleteBundle ( IEnumerable collections, bool inclPackages = false, bool inclDependencies = false, bool inclPackageWorkFiles = false ) : void
DeletePackage ( SpecificVersion package, bool inclWorkFiles = false, bool inclDependencies = false ) : void
DeletePackageIfExists ( Dependency package, bool inclWorkFiles = false, bool inclDependencies = false ) : void
DeletePackageIfExists ( SpecificVersion package, bool inclWorkFiles = false, bool inclDependencies = false ) : void
DeletePackages ( IEnumerable packages, bool inclWorkFiles = false, bool inclDependencies = false ) : void
DeletePackages ( IEnumerable packages, bool inclWorkFiles = false, bool inclDependencies = false ) : void
DeletePackagesThatExist ( IEnumerable packages, bool inclWorkFiles = false, bool inclDependencies = false ) : void
DownloadPackage ( string packageName, bool useFullNameOverride = null ) : Task
GetAndAddPackage ( SpecificVersion package ) : Task
GetMetaData ( SpecificVersion arg ) : PackageMetaData
GetPackages ( bool useFullName = false ) : IEnumerable
GetPackagesAsVersions ( bool remote = false ) : SpecificVersionInfo[]>.Dictionary
List ( bool remote = false ) : Task>
List ( string remote ) : Task>
PackageManager ( Repository repo, IAbsoluteDirectoryPath workDir, StatusRepo statusRepo, bool createWhenNotExisting = false, string remote = null ) : System
ProcessPackage ( Dependency package, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
ProcessPackage ( SpecificVersion package, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
ProcessPackages ( IEnumerable packageNames, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
ProcessPackages ( IEnumerable packageNames, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
SetupSynqProgress ( string title = "Network mods" ) : PackageProgress
UpdateRemotes ( CancellationToken token = default(CancellationToken) ) : Task

Private Methods

Method Description
CheckoutAsync ( string packageName, bool useFullNameOverride = null ) : Task
Create ( Repository repo, IAbsoluteDirectoryPath workDir, bool createWhenNotExisting = false, string remote = null ) : Task
FetchAllRequestedPackages ( IReadOnlyCollection specificVersions ) : Task
FetchString ( Uri uri ) : string
FindRemotesWithPackage ( Dependency package ) : IEnumerable
FindRemotesWithPackage ( string packageName ) : IEnumerable
GetConfigFromRemotes ( IEnumerable remotes ) : RepositoryConfigDto
GetDependencyTree ( IReadOnlyCollection dependencies, bool noCheckout, bool useFullName ) : Task>
GetDependencyTreeInternal ( IReadOnlyCollection dependencies, bool noCheckout, bool useFullName, List list, List list2, List packages ) : Task
GetExistingObjects ( IEnumerable objects, IEnumerable packages ) : IEnumerable
GetObjectsToFetch ( bool skipWhenFileMatches, IReadOnlyCollection packages, List allRemotes ) : Package.ObjectMap[]
GetPackage ( SpecificVersion package ) : Task
GetPackageMetadataPath ( SpecificVersion arg ) : IAbsoluteFilePath
GetPackedSize ( IEnumerable packages ) : long
HandleRemotes ( string remotes ) : void
OrderPackageLast ( ICollection list, ICollection packages, Package package ) : void
ProcessCheck ( bool noCheckout, bool skipWhenFileMatches, IReadOnlyCollection packages, ICollection syncedPackages, Package objectsToFetch ) : Task
ProcessLegacy ( bool noCheckout, bool skipWhenFileMatches, IReadOnlyCollection packages ) : Task
ProcessModern ( bool noCheckout, Package packages ) : Task
ProcessPackageInternal ( Package package, ProgressLeaf p ) : Task
ProcessSynqObjects ( bool noCheckout, bool skipWhenFileMatches, IReadOnlyCollection packages, ICollection syncedPackages ) : Task
ResolveDependencies ( List list, List list2, List packages, SpecificVersion depInfo, List done, bool useFullName = false, bool noCheckout = false ) : Task
ResolvePackageName ( string packageName ) : SpecificVersion
TryGetConfigFromRemote ( string r ) : RepositoryConfigDto
TryResolvePackageName ( string packageName ) : SpecificVersion
TrySyncObjects ( bool noCheckout, bool skipWhenFileMatches, IReadOnlyCollection packages ) : Task
UpdateMultiple ( IReadOnlyCollection objects, IReadOnlyCollection packages, IReadOnlyCollection remotes ) : Task

Method Details

Checkout() public method

public Checkout ( IReadOnlyCollection packageNames, bool useFullNameOverride = null ) : Task>
packageNames IReadOnlyCollection
useFullNameOverride bool
return Task>

CleanPackages() public method

public CleanPackages ( IReadOnlyCollection keepVersions ) : Task>
keepVersions IReadOnlyCollection
return Task>

CleanPackages() public method

public CleanPackages ( int limit, IReadOnlyCollection keepVersions ) : Task>
limit int
keepVersions IReadOnlyCollection
return Task>

DeleteBundle() public method

public DeleteBundle ( IEnumerable collections, bool inclPackages = false, bool inclDependencies = false, bool inclPackageWorkFiles = false ) : void
collections IEnumerable
inclPackages bool
inclDependencies bool
inclPackageWorkFiles bool
return void

DeletePackage() public method

public DeletePackage ( SpecificVersion package, bool inclWorkFiles = false, bool inclDependencies = false ) : void
package SpecificVersion
inclWorkFiles bool
inclDependencies bool
return void

DeletePackageIfExists() public method

public DeletePackageIfExists ( Dependency package, bool inclWorkFiles = false, bool inclDependencies = false ) : void
package Dependency
inclWorkFiles bool
inclDependencies bool
return void

DeletePackageIfExists() public method

public DeletePackageIfExists ( SpecificVersion package, bool inclWorkFiles = false, bool inclDependencies = false ) : void
package SpecificVersion
inclWorkFiles bool
inclDependencies bool
return void

DeletePackages() public method

public DeletePackages ( IEnumerable packages, bool inclWorkFiles = false, bool inclDependencies = false ) : void
packages IEnumerable
inclWorkFiles bool
inclDependencies bool
return void

DeletePackages() public method

public DeletePackages ( IEnumerable packages, bool inclWorkFiles = false, bool inclDependencies = false ) : void
packages IEnumerable
inclWorkFiles bool
inclDependencies bool
return void

DeletePackagesThatExist() public method

public DeletePackagesThatExist ( IEnumerable packages, bool inclWorkFiles = false, bool inclDependencies = false ) : void
packages IEnumerable
inclWorkFiles bool
inclDependencies bool
return void

DownloadPackage() public method

public DownloadPackage ( string packageName, bool useFullNameOverride = null ) : Task
packageName string
useFullNameOverride bool
return Task

GetAndAddPackage() public method

public GetAndAddPackage ( SpecificVersion package ) : Task
package SpecificVersion
return Task

GetMetaData() public method

public GetMetaData ( SpecificVersion arg ) : PackageMetaData
arg SpecificVersion
return PackageMetaData

GetPackages() public method

public GetPackages ( bool useFullName = false ) : IEnumerable
useFullName bool
return IEnumerable

GetPackagesAsVersions() public method

public GetPackagesAsVersions ( bool remote = false ) : SpecificVersionInfo[]>.Dictionary
remote bool
return SpecificVersionInfo[]>.Dictionary

List() public method

public List ( bool remote = false ) : Task>
remote bool
return Task>

List() public method

public List ( string remote ) : Task>
remote string
return Task>

PackageManager() public method

public PackageManager ( Repository repo, IAbsoluteDirectoryPath workDir, StatusRepo statusRepo, bool createWhenNotExisting = false, string remote = null ) : System
repo Repository
workDir IAbsoluteDirectoryPath
statusRepo StatusRepo
createWhenNotExisting bool
remote string
return System

ProcessPackage() public method

public ProcessPackage ( Dependency package, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
package Dependency
useFullNameOverride bool
noCheckout bool
skipWhenFileMatches bool
return Task

ProcessPackage() public method

public ProcessPackage ( SpecificVersion package, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
package SpecificVersion
useFullNameOverride bool
noCheckout bool
skipWhenFileMatches bool
return Task

ProcessPackages() public method

public ProcessPackages ( IEnumerable packageNames, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
packageNames IEnumerable
useFullNameOverride bool
noCheckout bool
skipWhenFileMatches bool
return Task

ProcessPackages() public method

public ProcessPackages ( IEnumerable packageNames, bool useFullNameOverride = null, bool noCheckout = false, bool skipWhenFileMatches = true ) : Task
packageNames IEnumerable
useFullNameOverride bool
noCheckout bool
skipWhenFileMatches bool
return Task

SetupSynqProgress() public static method

public static SetupSynqProgress ( string title = "Network mods" ) : PackageProgress
title string
return PackageProgress

UpdateRemotes() public method

public UpdateRemotes ( CancellationToken token = default(CancellationToken) ) : Task
token System.Threading.CancellationToken
return Task