public async Task StartAsync() { try { await Task.Run(() => { _socketServiceManager.UpdateSymbols(); _socketServiceManager.UpdatePrices(); _socketServiceManager.UpdateUsers(); _socketServiceManager.UpdateSubscriptions(); _socketServiceManager.UpdateAlerts(); _socketServiceManager.SubscribeAll(); }); } catch (Exception ex) { Console.WriteLine(ex); } }
private void DoWork(object state) { _socketServiceManager.UpdateSymbols(); }