示例#1
0
 ///validates the entry and exit references
 protected override void OnGraphValidate()
 {
     base.OnGraphValidate();
     _entry = null;
     _exit  = null;
     _entry = entry;
     _exit  = exit;
 }
示例#2
0
 ///validates the entry and exit references
 protected override void OnGraphValidate()
 {
     base.OnGraphValidate();
     _entry = null;
     _exit  = null;
     _entry = entry;
     _exit  = exit;
     //create initial example ports in case there are none in both entry and exit
     if (inputDefinitions.Count == 0 && outputDefinitions.Count == 0)
     {
         var defIn  = new DynamicPortDefinition("In", typeof(Flow));
         var defOut = new DynamicPortDefinition("Out", typeof(Flow));
         var source = AddInputDefinition(defIn);
         var target = AddOutputDefinition(defOut);
         BinderConnection.Create(source, target);
     }
 }
示例#3
0
 ///validates the entry & exit references
 protected override void OnGraphValidate()
 {
     base.OnGraphValidate();
     _entry = null;
     _exit  = null;
     _entry = entry;
     _exit  = exit;
     //create initial ports in case there are none in both entry and exit
     if (inputDefinitions.Count == 0 && outputDefinitions.Count == 0)
     {
         var defIn  = new MacroPortDefinition("In", typeof(Flow));
         var defOut = new MacroPortDefinition("Out", typeof(Flow));
         inputDefinitions.Add(defIn);
         outputDefinitions.Add(defOut);
         entry.GatherPorts();
         exit.GatherPorts();
         var source = entry.GetOutputPort(defIn.ID);
         var target = exit.GetInputPort(defOut.ID);
         BinderConnection.Create(source, target);
     }
 }