예제 #1
0
        public Action ConnectToInPort(string portName, Edge edge)
        {
            InPort port = Input.GetPort(portName);

            port.AddConnection(edge);
            edge.Target = port;
            return(() => {
                if (port.ProcessConnection != null)
                {
                    port.ProcessConnection.Invoke(edge.Source);
                }
            });
        }