internal static IEnumerable <string> GetFabricSectionNames(ClusterExternalState state) { if (state == null || state.ClusterManifest == null || state.ClusterManifest.FabricSettings == null) { return(Enumerable.Empty <string>()); } return(state.ClusterManifest.FabricSettings.Select(p => p.Name)); }
public ClusterState(IUserConfig csmConfig, IAdminConfig wrpConfig, ClusterNodeConfig nodeConfig, ClusterExternalState externalState) { this.CSMConfig = csmConfig; this.WRPConfig = wrpConfig; this.NodeConfig = nodeConfig; this.ExternalState = externalState; }