コード例 #1
0
        public ulong wsq(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.wsq(windCodes, fields, tmpoptions, out errCode);
            WSQReq wr  = new WSQReq();

            wr.callback  = wc;
            wr.rdata     = wsq(windCodes, fields, options);
            wr.updateAll = updateAll;
            ReqList.Add(rid, wr);
            return(rid);
        }