private void CombineComputeNodes()
 { 
     NodeType = ComputeNodeType.MX;
     IComputeNode mx = GetComputeNode();
     NodeType = ComputeNodeType.WeatherData;
     IComputeNode weather = GetComputeNode();
     NodeType = ComputeNodeType.WikiData;
     IComputeNode wiki = GetComputeNode();
     weather.Catalogs.Values.ToList().ForEach(c => mx.Catalogs.Add(c.Name, c));
     wiki.Catalogs.Values.ToList().ForEach(c => mx.Catalogs.Add(c.Name, c));
     string json = mx.SerializeComputeNode();
     File.WriteAllText("c:\\Temp\\BermudaCombined.Config", json);
 }
Exemple #2
0
        private void CombineComputeNodes()
        {
            NodeType = ComputeNodeType.MX;
            IComputeNode mx = GetComputeNode();

            NodeType = ComputeNodeType.WeatherData;
            IComputeNode weather = GetComputeNode();

            NodeType = ComputeNodeType.WikiData;
            IComputeNode wiki = GetComputeNode();

            weather.Catalogs.Values.ToList().ForEach(c => mx.Catalogs.Add(c.Name, c));
            wiki.Catalogs.Values.ToList().ForEach(c => mx.Catalogs.Add(c.Name, c));
            string json = mx.SerializeComputeNode();

            File.WriteAllText("c:\\Temp\\BermudaCombined.Config", json);
        }