// // Excel calls this when it wants to shut down RTD server. // void IRtdServer.ServerTerminate() { if (_timer != null) { _timer.Stop(); _timer = null; } if (_socket != null) { _socket.Disconnect(); _socket = null; } //_binanceViewModel = null; }
// // Excel calls this when it wants to shut down RTD server. // void IRtdServer.ServerTerminate() { if (_timer != null) { _timer.Stop(); _timer = null; } if (_socket != null) { _socket.Disconnect(); _socket = null; } if (_binanceAdapter != null) { _binanceAdapter.UnsubscribeAllStreams(); _binanceAdapter = null; } }