/// <summary> /// TBD /// </summary> /// <param name="connection">TBD</param> /// <param name="logic">TBD</param> public void AttachUpstreamBoundary(int connection, UpstreamBoundaryStageLogic logic) => AttachUpstreamBoundary(Connections[connection], logic);
/// <summary> /// Assign the boundary logic to a given connection. This will serve as the interface to the external world /// (outside the interpreter) to process and inject events. /// </summary> public void AttachUpstreamBoundary(int connection, UpstreamBoundaryStageLogic logic) { logic.PortToConn[logic.Out.Id + logic.InCount] = connection; logic.Interpreter = this; OutHandlers[connection] = (OutHandler)logic.Handlers[0]; }
/// <summary> /// Assign the boundary logic to a given connection. This will serve as the interface to the external world /// (outside the interpreter) to process and inject events. /// </summary> /// <param name="connection">TBD</param> /// <param name="logic">TBD</param> public void AttachUpstreamBoundary(Connection connection, UpstreamBoundaryStageLogic logic) { logic.PortToConn[logic.Out.Id + logic.InCount] = connection; logic.Interpreter = this; connection.OutHandler = (IOutHandler)logic.Handlers[0]; }