public bool?Call() { long start = PerformanceObserver.MilliTime; try { for (int i = 0; i < _numEvents; i++) { _engine.SendEvent(new SupportBean("E" + Convert.ToString(i), 0)); } } catch (Exception ex) { Log.Error("Error in thread " + Thread.CurrentThread.ManagedThreadId, ex); return(null); } long end = PerformanceObserver.MilliTime; return(true); }
private void SendMarketBean(String symbol, long volume) { SupportMarketDataBean bean = new SupportMarketDataBean(symbol, 0, volume, ""); _engine.SendEvent(bean); }