示例#1
0
        public void StopMatching()
        {
            if (!_singleInstrument.IsCancelled)
            {
                _singleInstrument.Cancel();
                _matchingEvent.Set();
                _stopEvent1.WaitOne();
            }
            if (!_manyInstruments.IsCancelled)
            {
                _manyInstruments.Cancel();
                _matchingEvent.Set();

                if (_bittrex.Enable)
                {
                    _stopEvent2.WaitOne();
                }
            }
        }
示例#2
0
 public void StopServer()
 {
     _cancellation.Cancel();
 }
 public void Stop()
 {
     _cancellation.Cancel();
     _event.Set();
 }