Exemple #1
0
 public static void BuildMethod(string id, BuildableObject currentObj, Dictionary <string, string> created,
                                Dictionary <string, ISuspendBuilder <string> > inProgress)
 {
     if (currentObj.RequiredIds.All(x => created.Keys.Contains(x)))
     {
         created.Add(id, currentObj.Id);
     }
     else
     {
         inProgress.Add(id, new SuspendBuilder(currentObj, created));
     }
 }
Exemple #2
0
 public SuspendBuilder(BuildableObject buildableObject, Dictionary <string, string> created)
 {
     _buildableObject = buildableObject;
     _created         = created;
 }