Пример #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);
     }
 }