コード例 #1
0
 public ScopedPackageDescriptor(PackageDescriptor parent, IEnumerable <IPackageDescriptorEntry> entries)
     : this(parent)
 {
     foreach (var line in entries)
     {
         _entries.Append(line);
     }
     InitializeHeaders();
 }
コード例 #2
0
        public static IPackageDescriptor Lock(this IPackageDescriptor descriptor, IPackageRepository repository, string scope = null)
        {
            scope = scope ?? string.Empty;
            var lockedRepo = repository.Feature <ISupportLocking>();

            if (lockedRepo == null)
            {
                return(descriptor);
            }
            var lockedDescriptor = new PackageDescriptor(descriptor);
            var lockedPackages   = lockedRepo.LockedPackages[scope];

            return(Lock(lockedDescriptor, lockedPackages));
        }
コード例 #3
0
 public ScopedPackageDescriptor(PackageDescriptor parent)
 {
     _parent = parent;
 }