public void AddNewRegistrationAndAcceptTOS(string contact) { if (UsePowershell) { powershellManager.NewRegistration(contact); powershellManager.AcceptRegistrationTOS(); } else { var cmd = new ACMESharp.POSH.NewRegistration(); cmd.Contacts = new string[] { contact }; cmd.ExecuteCommand(); var tosCmd = new ACMESharp.POSH.UpdateRegistration(); tosCmd.AcceptTos = new System.Management.Automation.SwitchParameter(true); tosCmd.ExecuteCommand(); } }
public void AddNewRegistration(string contacts) { powershellManager.NewRegistration(contacts); powershellManager.AcceptRegistrationTOS(); }