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