Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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)));
 }