protected override void Run() { if (exchangeService.GetTimeElapsedSinceLastTickersUpdate().TotalMilliseconds > ExchangeService.MAX_TICKERS_AGE_TO_RECONNECT_MILLISECONDS) { loggingService.Info("Exchange max tickers age reached, reconnecting..."); exchangeService.DisconnectTickersWebsocket(); exchangeService.ConnectTickersWebsocket(); } }