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);
        }
Exemplo n.º 2
0
        private void SendMarketBean(String symbol, long volume)
        {
            SupportMarketDataBean bean = new SupportMarketDataBean(symbol, 0, volume, "");

            _engine.SendEvent(bean);
        }