Exemple #1
0
 // Ensure all overriden implementations of FromInternal cover all newly added properties.
 internal virtual void FromInternal(
     IClusterTopology clusterTopology,
     IUserConfig userConfig,
     string apiVersion)
 {
     this.Nodes = new List <NodeDescriptionGA>(
         clusterTopology.Nodes.Values.Select <NodeDescription, NodeDescriptionGA>(
             node => NodeDescriptionGA.ReadFromInternal(node)));
     this.ApiVersion = apiVersion;
     this.ClusterConfigurationVersion = userConfig.Version.Version;
     this.Name = userConfig.ClusterName;
 }
Exemple #2
0
 public StandAloneInstallerJsonModelBase(IUserConfig config, IClusterTopology topology, string configurationVersion)
 {
     this.ClusterConfigurationVersion = configurationVersion;
     this.Name  = config.ClusterName;
     this.Nodes = new List <NodeDescription>(topology.Nodes.Values).ConvertAll <NodeDescriptionGA>(node => NodeDescriptionGA.ReadFromInternal(node));
 }