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));
        }
예제 #2
0
 public ClusterState(IUserConfig csmConfig, IAdminConfig wrpConfig, ClusterNodeConfig nodeConfig, ClusterExternalState externalState)
 {
     this.CSMConfig     = csmConfig;
     this.WRPConfig     = wrpConfig;
     this.NodeConfig    = nodeConfig;
     this.ExternalState = externalState;
 }