コード例 #1
0
        /// <summary>
        /// Deliver a message to the appropriate session, removing the unprocessed message
        /// from our map
        /// <param name="channelId">the channel id the message should be delivered to</param>
        /// <param name="msg"> the message</param>
        private void DeliverMessageToAMQSession(ushort channelId, UnprocessedMessage msg)
        {
            AmqChannel channel = (AmqChannel)_channelId2SessionMap[channelId];

            channel.MessageReceived(msg);
            _channelId2UnprocessedMsgMap.Remove(channelId);
        }