public ScopedPackageDescriptor(PackageDescriptor parent, IEnumerable <IPackageDescriptorEntry> entries) : this(parent) { foreach (var line in entries) { _entries.Append(line); } InitializeHeaders(); }
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)); }
public ScopedPackageDescriptor(PackageDescriptor parent) { _parent = parent; }