Exemplo 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);
        }
Exemplo n.º 2
0
 public PortInstance(NodePortDefinition definition)
 {
     Definition = definition;
 }