예제 #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;
 }