public DataService () { s = new Server(); jm = new JobModule(); StartMonitoringServers(); }
private object GetServers() { Server s = new Server(); lock (s) { foreach (string server in Config.NbConfigs.Keys) { var si = BrokerConnection.Request(server, "GetServerInfo", null) as ServerInfo; ServerInfo info = new ServerInfo(); if (si != null) { info = si; } s.Servers.Add(new Server(server, info)); } } return s.Servers; }