protected SynqPackageCommand(PackageItem package, ContentPaths paths) { Contract.Requires<ArgumentNullException>(package != null); Contract.Requires<ArgumentNullException>(paths != null); Package = package; Paths = paths; }
protected override async Task<BundleManager> CreateRepoIfNotExistent(ContentPaths modPaths, IEnumerable<KeyValuePair<Guid, Uri[]>> remotes) { var bm = await base.CreateRepoIfNotExistent(modPaths, remotes).ConfigureAwait(false); Game.WhenAny(x => x.PrimaryContentPath.Path, x => x.Value).Subscribe(x => { bm.PackageManager.Settings.GlobalWorkingPath = x; bm.PackageManager.Settings.CheckoutType = CheckoutType.CheckoutWithoutRemoval; }); return bm; }
public bool EqualRepositoryPath(ContentPaths other) { return RepositoryPath.EqualsNullSupported(other.RepositoryPath); }
protected virtual Task<BundleManager> CreateRepoIfNotExistent(ContentPaths modPaths, IEnumerable<KeyValuePair<Guid, Uri[]>> remotes) { var modPath = modPaths.Path; var synqBasePath = modPaths.RepositoryPath; var synqPath = synqBasePath.GetChildDirectoryWithName(Repository.DefaultRepoRootDirectory); return RepositoryHandler.GetBundleManager(synqPath, modPath, remotes); }
public bool EqualPath(ContentPaths other) { return Path.EqualsNullSupported(other.Path); }