/// <summary> /// Adds a Port to this SimplePortOwner's PortSet. /// </summary> /// <param name="port">The port that is being registered.</param> public void AddPort(IPort port) { m_myPortSet.AddPort(port); }
/// <summary> /// Registers a port with this IPortOwner /// </summary> /// <param name="port">The port that this IPortOwner will know by this key.</param> public void AddPort(IPort port) { m_ports.AddPort(port); }
public MyWorkflowElement() { m_portSet = new PortSet(true); m_portSet.AddPort(new SimpleInputPort(null, "PrimaryInput", Guid.NewGuid(), this, new DataArrivalHandler(TokenArrived))); m_portSet.AddPort(new SimpleOutputPort(null, "PrimaryOutput", Guid.NewGuid(), this, new DataProvisionHandler(TakeHandler), new DataProvisionHandler(PeekHandler))); }