コード例 #1
0
 /// <summary>
 /// Returns values from all connections.
 /// </summary>
 public IEnumerable <T> Get(INodeExecutionContext ctx) => ctx.Node.Port(Id).Connections.Select(c => ctx.GetInput <T>(c));
コード例 #2
0
 /// <summary>
 /// Returns value from given connection. Does NOT check if it's from this port.
 /// </summary>
 public T Get(INodeExecutionContext ctx, ConnectionModel connection) => ctx.GetInput <T>(connection);
コード例 #3
0
 /// <summary>
 /// Returns value from connection by its index.
 /// </summary>
 /// <param name="connectionIndex">Index of connection</param>
 public T Get(INodeExecutionContext ctx, int connectionIndex) => ctx.GetInput <T>(ctx.Node.Port(Id).Connections[connectionIndex]);
コード例 #4
0
 /// <summary>
 /// Returns value from single connection. There must be only one connection to this port.
 /// </summary>
 public T Get(INodeExecutionContext ctx) => ctx.GetInput <T>(ctx.Node.Port(Id).Connections.Single());