public void Test() { CBitfenixWebSockConnector bfxWebSock = new CBitfenixWebSockConnector(this, GenListInstrument(), true, "fVgyf0Rk4hDDDdXAzys7yN0vnGcRPUVYRTLoOxTyDIL", "MDqroztPvZzFIaKKspozdyeAD274OFAZnEZy2nv3eUE"); ThreadPool.SetMinThreads(100, 100); // System.Threading.Thread.Sleep(60000); //string path = @"e:\ATFS\Logs\TradeSystemCrypto\2018_06_27\BfxRaw_public___07_32_41.txt"; string path = @"e:\temp993\1.txt"; string [] lines = File.ReadAllLines(path); DateTime dtStart = DateTime.Now; Console.WriteLine("started" + CUtilTime.GetDateTimeString(dtStart)); for (int i = 0; i < lines.Length; i++) { if (lines[i].Contains("== STARTED ===")) { continue; } string msg = lines[i].Remove(0, 27); bfxWebSock.ProcessData(msg); } DateTime dtEnd = DateTime.Now; double sec = (dtEnd - dtStart).TotalSeconds; Console.WriteLine("Sec=" + sec); Console.ReadKey(); }