示例#1
0
        public ulong bbq(ref int errCode, string windCodes, string fields, string options, WindCallback wc)
        {
            checkConnection();
            if (wc == null)
            {
                throw new Exception("订阅回调函数不能为空。");
            }
            string tmpoptions = options + ";REALTIME=Y";
            ulong  rid        = wdc.bbq(windCodes, fields, tmpoptions, out errCode);
            WSQReq wr         = new WSQReq();

            wr.callback  = wc;
            wr.updateAll = false;
            lock (ReqList)
            {
                ReqList.Add(rid, wr);
            }
            return(rid);
        }