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 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 |
---|---|
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. |