示例#1
0
 public StandaloneAdminConfig(
     FabricSettingsMetadata fabricSettingsMetadata,
     StandAloneClusterManifestSettings standAloneClusterManifestSettings,
     AdminConfigVersion version,
     bool isUserSet)
 {
     this.fabricSettingsMetadata = fabricSettingsMetadata;
     this.Version = version;
     this.standAloneClusterManifestSettings = standAloneClusterManifestSettings;
     this.IsUserSet = isUserSet;
 }
示例#2
0
        internal static void UpdateStandAloneClusterWRPSettings(string clusterSettingsFilePath, string version, StandAloneCluster existingCluster)
        {
            string fabricSettingFilePath = StandaloneUtility.FindFabricResourceFile("Configurations.csv");
            FabricSettingsMetadata fabricSettingsMetadata = FabricSettingsMetadata.Create(fabricSettingFilePath);
            AdminConfigVersion     adminConfigVersion     = new AdminConfigVersion("Baseline", version);

            StandAloneClusterManifestSettings standAloneClusterManifestSettings = JsonConvert.DeserializeObject <StandAloneClusterManifestSettings>(
                File.ReadAllText(clusterSettingsFilePath));

            existingCluster.TargetWrpConfig = new StandaloneAdminConfig(fabricSettingsMetadata, standAloneClusterManifestSettings, adminConfigVersion, false);
        }