Base interface representing a generic port builder. Used in a builder pattern to configure and construct ports.
This interface supports a builder pattern, where each method returns the builder instance, allowing chained configuration of port settings before final construction using IPortBuilder<T0>.Build. Use derived interfaces such as IInputPortBuilder or IOutputPortBuilder to build specific port types.
context.AddInputPort("MyInput")
.WithDataType(typeof(int))
.WithDisplayName("Input Value")
.Build();
| Method | Description |
|---|---|
| AsVertical | Configures the port to be built as a vertical port. |
| Build | Builds and returns the final IPort instance based on the current configuration of the builder. |
| WithConnectorUI | Configures the connector UI shape for the port being built. |
| WithDisplayName | Configures the display name of the port being built. |
| WithTooltip | Configures the tooltip text of the port being built. |