/// <summary> /// Returns list of launch info objects, each of which describe a particular launch, /// but note, does not include the actual history log for the launch. To get launch /// info including the log, use GetLaunchInfo /// </summary> /// <param name="registrationId"></param> /// <returns></returns> public List <LaunchInfo> GetLaunchHistory(string registrationId) { ServiceRequest request = new ServiceRequest(configuration); request.Parameters.Add("regid", registrationId); XmlDocument response = request.CallService("rustici.registration.getLaunchHistory"); XmlElement launchHistory = ((XmlElement)response.GetElementsByTagName("launchhistory")[0]); return(LaunchInfo.ConvertToLaunchInfoList(launchHistory)); }
public void History() { string launchID = ""; foreach (LaunchInfo li in reg.GetLaunchHistory(regId2)) { Console.WriteLine(string.Format("{0} : {1}", li.Id, li.LaunchTime)); Console.WriteLine(li.Log); launchID = li.Id; } if (!String.IsNullOrEmpty(launchID)) { LaunchInfo li = reg.GetLaunchInfo(launchID); Console.WriteLine(li.Log); } else { Assert.Ignore("no history"); } }