public void StopMatching() { if (!_singleInstrument.IsCancelled) { _singleInstrument.Cancel(); _matchingEvent.Set(); _stopEvent1.WaitOne(); } if (!_manyInstruments.IsCancelled) { _manyInstruments.Cancel(); _matchingEvent.Set(); if (_bittrex.Enable) { _stopEvent2.WaitOne(); } } }
public void StopServer() { _cancellation.Cancel(); }
public void Stop() { _cancellation.Cancel(); _event.Set(); }