예제 #1
0
        public DataService ()
        {
            s = new Server();
            jm = new JobModule();

            StartMonitoringServers();
        }
예제 #2
0
        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;
        }