Ejemplo n.º 1
0
        public IActionResult Connections([FromServices] ConnectionsManager manager)
        {
            ConnectionsModel     model           = new ConnectionsModel();
            ICollection <string> openConnections = manager.GetConnections();

            foreach (var connection in openConnections)
            {
                model.activeConnections.Add(new BinanceConnectionModel {
                    Symbol = connection
                });
            }

            return(View(model));
        }