//消息交换测试 private static void TestSwapMsg() { Console.WriteLine("Hello World!"); QuoteMonitor pManager = new QuoteMonitor(); pManager.Start(-1, 1); //string dirSwap = @"D:\myCode\zxcProj\src\Zxc.Python\zxcPy.Robot.Spider\Data\Swaps"; //DataSwap_IOFiles pSwap = new DataSwap_IOFiles("Quote", dirSwap, 0, typeof(Data_Quote)); //pSwap.SwapData_Change += new DataSwapChange_EventHandler(Program.DataSwapChange_EventHandler); //List<dynamic> lstDatas = pSwap.SwapData_In(); //pSwap.Start(-1, 5); //foreach (var item in lstDatas) //{ // Data_Quote pData = (Data_Quote)item; // if (pData == null) continue; //} while (true) { Thread.Sleep(2000); //模拟长时间运算 } }
//行情监测开始 public bool StartMonitor() { return(_Monitor.Start(-1, 1, 100)); }