Apache.NMS.ActiveMQ.State.ConnectionStateTracker.processAddProducer C# (CSharp) Method

processAddProducer() public method

public processAddProducer ( ProducerInfo info ) : Response
info Apache.NMS.ActiveMQ.Commands.ProducerInfo
return Apache.NMS.ActiveMQ.Commands.Response
        public override Response processAddProducer(ProducerInfo info)
        {
            if(info != null && info.ProducerId != null)
            {
                SessionId sessionId = info.ProducerId.ParentId;
                if(sessionId != null)
                {
                    ConnectionId connectionId = sessionId.ParentId;
                    if(connectionId != null)
                    {
                        ConnectionState cs = connectionStates[connectionId];
                        if(cs != null)
                        {
                            SessionState ss = cs[sessionId];
                            if(ss != null)
                            {
                                ss.addProducer(info);
                            }
                        }
                    }
                }
            }
            return TRACKED_RESPONSE_MARKER;
        }