Пример #1
0
        public ulong tdq(string windCodes, string fields, string options, WindCallback wc, bool updateAll = true)
        {
            checkConnection();
            if (wc == null)
            {
                throw new Exception("订阅回调函数不能为空。");
            }
            string tmpoptions = options + ";REALTIME=Y";
            int    errCode;
            ulong  rid = wdc.tdq(windCodes, fields, tmpoptions, out errCode);
            WSQReq wr  = new WSQReq();

            wr.callback = wc;
            //wr.rdata = tdq_syn(windCodes, fields, options);
            wr.updateAll = updateAll;
            lock (ReqList)
            {
                ReqList.Add(rid, wr);
            }
            return(rid);
        }