protected void OnWebServerStarted(XspResult result) { if (WebServerStarted != null) { WebServerStarted(this, new WebServerStartedEventArgs(result)); } }
public void GetXspInfoAsync() { WebClient wc = new WebClient(); string url = string.Format("/session/{0}/xspinfo", ID); var req = HttpWebRequest.Create(Connection.CreateUri(url)); req.Method = "GET"; req.BeginGetResponse(delegate(IAsyncResult result) { var res = req.EndGetResponse(result); XmlDocument doc = new XmlDocument(); doc.Load(res.GetResponseStream()); XmlNode node = doc.SelectSingleNode("/xsp-result"); var xsp_result = new XspResult(node); OnWebServerStarted(xsp_result); }, null); }
public WebServerStartedEventArgs(XspResult result) { this.Result = result; }