コード例 #1
0
 public static void ReleaseContainerId(FuncTypeRealTime funcType, int containerId)
 {
     if ((_idMgr != null) && _idMgr.ContainsKey(funcType))
     {
         CftContainerId id = _idMgr[funcType];
         if (id != null)
         {
             id.ReleaseContainerId(containerId);
         }
     }
 }
コード例 #2
0
        public static int CreateContainerId(FuncTypeRealTime funcType)
        {
            int num = 1;

            if ((_idMgr != null) && _idMgr.ContainsKey(funcType))
            {
                CftContainerId id = _idMgr[funcType];
                if (id != null)
                {
                    num = id.CreateContainerId();
                }
            }
            return(num);
        }
コード例 #3
0
        static CftContainerIdMgr()
        {
            CftContainerId id = new CftContainerId();

            _idMgr[FuncTypeRealTime.StockTrend] = id;
            CftContainerId id2 = new CftContainerId();

            _idMgr[FuncTypeRealTime.NOrderStockDetailLevel2] = id2;
            CftContainerId id3 = new CftContainerId();

            _idMgr[FuncTypeRealTime.AllOrderStockDetailLevel2] = id3;
            CftContainerId id4 = new CftContainerId();

            _idMgr[FuncTypeRealTime.StockDetailOrderQueue] = id4;
            CftContainerId id5 = new CftContainerId();

            _idMgr[FuncTypeRealTime.TrendCapitalFlow] = id5;
        }