void CreateOrder() { GoodsOrderInfo goi = GetOrder(); Guid cmdid = Guid.NewGuid(); EyeseeLog.Log(Name + ":" + goi.OrderId + "" + "----------SucceCount:" + LoadTest.SucceCount + "----Execute.Count:" + LoadTest.ExecuteCount); try { LoadTest.ExecuteCount++; var s = client.Insert(goi, GetOrderDetail(goi), cmdid); if (!s.IsSuccess) { EyeseeLog.Log("server error:" + s.ErrorMessage); } else { LoadTest.SucceCount++; } } catch (Exception ex) { EyeseeLog.Log("local error : " + ex.Message + ex.GetType().FullName); } }
public void Run() { if (timer == null) { timer = new System.Timers.Timer(interval); timer.Elapsed += TimerEventFunction; timer.AutoReset = true; timer.Enabled = true; EyeseeLog.Log("Start Thread : " + Name); } }