private bool NexposeScanIsRunning(string nexposeScanID) { using (NexposeSession session = new NexposeSession(this.Configuration["nexposeHost"])) { session.Authenticate (this.Configuration ["nexposeUser"], this.Configuration ["nexposePass"]); using (NexposeManager11 manager = new NexposeManager11(session)) { XmlDocument response = manager.GetScanStatus (nexposeScanID); string status = response.FirstChild.Attributes ["status"].Value; if (status == "finished" || status == "stopped") return false; return true; } } }