public override void BeforeAddOrUpdate( IDependency dependency, AddDependencyContext context) { // TODO should this verify that the existing one is actually resolved? if (!dependency.Resolved && context.Contains(dependency.GetDependencyId())) { context.Reject(); return; } context.Accept(dependency); }
public override void BeforeAddOrUpdate( IDependency dependency, IReadOnlyDictionary <string, IProjectDependenciesSubTreeProvider> subTreeProviderByProviderType, IImmutableSet <string>?projectItemSpecs, AddDependencyContext context) { // TODO should this verify that the existing one is actually resolved? if (!dependency.Resolved && context.Contains(dependency.ProviderType, dependency.Id)) { context.Reject(); return; } context.Accept(dependency); }