public void RemoveItemAndDependencyFactories(string namePart) { if (_itemAndDependencyFactories == null) { _itemAndDependencyFactories = new ItemAndDependencyFactoryList(); } _itemAndDependencyFactories.Remove(namePart); }
public void AddItemAndDependencyFactory(IItemAndDependencyFactory itemAndDependencyFactory) { if (_itemAndDependencyFactories == null) { _itemAndDependencyFactories = new ItemAndDependencyFactoryList(); } _itemAndDependencyFactories.Add(itemAndDependencyFactory); }
internal WorkingGraph(string userDefinedName, GraphCreationType type, [NotNull][ItemNotNull] IEnumerable <Dependency> dependencies, [NotNull] ItemAndDependencyFactoryList itemAndDependencyFactories) { UserDefinedName = userDefinedName; Type = type; _dependencies = dependencies.ToList(); ClearAllCaches(); _globalItemAndDependencyFactories = itemAndDependencyFactories; }
private static WorkingGraph CreateDefaultGraph(ItemAndDependencyFactoryList itemAndDependencyFactories) { return(new WorkingGraph("", GraphCreationType.Manual, new Dependency[0], itemAndDependencyFactories)); }