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); }
public PortInstance(NodePortDefinition definition) { Definition = definition; }