// 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; }
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)); }