public static void ReleaseContainerId(FuncTypeRealTime funcType, int containerId) { if ((_idMgr != null) && _idMgr.ContainsKey(funcType)) { CftContainerId id = _idMgr[funcType]; if (id != null) { id.ReleaseContainerId(containerId); } } }
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); }
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; }