public void DeleteSchedule(OpenVASSchedule schedule) { if (schedule.RemoteScheduleID == Guid.Empty) { throw new Exception("Can't delete schedule that hasn't been created."); } XmlDocument response = this.DeleteSchedule(schedule.RemoteScheduleID.ToString()); foreach (XmlAttribute attr in response.Attributes) { if (attr.Name == "status" && attr.Value != "200") { throw new Exception("Deleting schedule failed."); } } }
public void DeleteSchedule(OpenVASSchedule schedule) { if (schedule.RemoteScheduleID == Guid.Empty) throw new Exception("Can't delete schedule that hasn't been created."); XmlDocument response = this.DeleteSchedule(schedule.RemoteScheduleID.ToString()); foreach (XmlAttribute attr in response.Attributes) { if (attr.Name == "status" && attr.Value != "200") throw new Exception("Deleting schedule failed."); } }