public JushitaConfigurationV2(String appKey, String secret, String connectId, List<String> topics)
            : base(appKey, secret, connectId, topics, new Dictionary<string, string>())
        {
            this.topics = topics;
            //保持单线程 多线程交给MessageDriver去处理 这是为了确保顺序的把消息提交给MessageDriver
            base.SetMaxThreads(1);
            base.SetMinThreads(1);

            //实例化消息driver
            driver = new MessageDriver(appKey, secret);

            //设置url。包括连接url和report的url
            this.SetConnectUrl(url);

            //虽然只有一个,因为是set,所以还要遍历一下
            foreach (TopCometStreamRequest cometReq in this.GetConnectReqParam())
            {
                cometReq.SetConnectListener(new InnerConnectionLifeCycleListener(null));
                cometReq.SetMsgListener(new InnerMessageListener(driver, null));
                cometReq.GetOtherParam().Add("ver", "2");
            }
        }
 public MockTopCometMessageListener(MessageDriver driver, ITopCometMessageListener topCometMessageListener)
 {
     this.driver = driver;
     this.topCometMessageListener = topCometMessageListener;
 }