public StompClient(SilicondashOSATConfiguration _configuration) { this.configuration = _configuration; this.handler = new Handler(this.configuration.URI, this.configuration.LoginID, this.configuration.LoginPWD); this.silicondashService = new Thread(new ThreadStart(this.doSilicondashService)); this.monitorService = new Thread(new ThreadStart(this.doMonitorService)); }
private void ProcessSilicondashLogs(string osatID, string message) { SilicondashOSATConfiguration configuration = this.FindOSATConfigurations(osatID); //ListBox box = (ListBox)this.tabControl.TabPages["tab" + osatID].Controls["lst" + osatID]; string item = string.Format("{0}: {1}", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), message); //if (box.Items.Count > 0x63) //{ // box.Items.Clear(); //} //box.Items.Add(item); string fileName = string.Format(@"{0}\{1}_{2}.log", this.logDirectory, osatID, DateTime.Now.ToString("yyyyMMdd")); bool flag = false; while (!flag) { try { EventService.AppendToLogFileToAbsFile(fileName, item + "\r\n"); Log.Instance.Info(osatID + "\r\n" + item + "\r\n"); flag = true; } catch (Exception) { } } }
public SilicondashClient(SilicondashOSATConfiguration _configuration) { this.configuration = _configuration; }