public void DisableGroup(string groupName) { using (RegistryKey registryKey = this.OpenGroupConfigKey(groupName, true)) { RegUtils.SetProperty <bool>(registryKey, "IsAutomaticActionsAllowed", false); } }
public void SetDefaultGroupName(string groupName) { using (RegistryKey registryKey = this.OpenGroupsContainerKey(true)) { RegUtils.SetProperty <string>(registryKey, "DefaultGroupName", groupName); } }
public void SetRestartRequired(string groupName, bool isRestartRequired) { lock (this.locker) { using (RegistryKey registryKey = this.OpenGroupConfigKey(groupName, true)) { RegUtils.SetProperty <bool>(registryKey, "IsRestartRequested", isRestartRequired); } } }
public void SetGroupMemberConfig(string groupName, InstanceGroupMemberConfig cfg) { lock (this.locker) { using (RegistryKey registryKey = this.OpenGroupMemberConfigKey(groupName, cfg.Name, true)) { RegUtils.SetProperty <bool>(registryKey, "IsWitness", cfg.IsWitness); if (!string.IsNullOrEmpty(cfg.NetworkAddress)) { RegUtils.SetProperty <string>(registryKey, "NetworkAddress", cfg.NetworkAddress); } } } }