Esempio n. 1
0
        public T GetPort <T>(NodePortDefinition definition)
        {
            var port = Ports.FirstOrDefault(x => x.Definition.Key == definition.Key);

            if (port == null)
            {
                throw new Exception("Port not found");
            }
            return((T)port?.InputOutput);
        }
Esempio n. 2
0
 public PortInstance(NodePortDefinition definition)
 {
     Definition = definition;
 }