private DirectoryInfo ResultPathAlternative() { try { ResultPath = new DirectoryInfo(GCHandleAcqClient.GetResultFilePath(InstrumentKey)); } catch (Exception) { } return(_resultPath); }
internal static void Tick() { Thread.Sleep(5000); GCHandleAcqClient.StopRun(Gc.InstrumentKey); _posthandle = Task.Run(() => ReadDataFromRstFile(Gc.ResultPath, _cancellation.Token)); //ReadDataFromRstFile(Gc.ResultPath, cancellation.Token); if (++Gc.K <= Gc.Max) { Thread.Sleep((int)(Gc.Interval)); Start(); } }
private static void Start() { GCHandleAcqClient.StartRun(Gc.InstrumentKey); _timer.Start(); bartimer.Start(); }