コード例 #1
0
        protected SynqPackageCommand(PackageItem package, ContentPaths paths) {
            Contract.Requires<ArgumentNullException>(package != null);
            Contract.Requires<ArgumentNullException>(paths != null);

            Package = package;
            Paths = paths;
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 public bool EqualRepositoryPath(ContentPaths other) {
     return RepositoryPath.EqualsNullSupported(other.RepositoryPath);
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 public bool EqualPath(ContentPaths other) {
     return Path.EqualsNullSupported(other.Path);
 }