示例#1
0
        internal static string ConvertTo(this HighAvailabilitySyncModes mode)
        {
            switch (mode)
            {
            case HighAvailabilitySyncModes.Manual:
                return("manual");

            case HighAvailabilitySyncModes.Automatic:
                return("automatic");

            default:
                throw new ArgumentOutOfRangeException(nameof(mode), mode, null);
            }
        }
示例#2
0
 public void SetHighAvailabilitySyncMode(HighAvailabilitySyncModes mode)
 {
     SetArg("ha-sync-mode", mode.ConvertTo());
 }
示例#3
0
                public void SetHighAvailabilitySyncMode(HighAvailabilitySyncModes mode)
                {
                    Validate("ha-sync-mode");

                    Arguments.Add("ha-sync-mode", mode.ConvertTo());
                }