Ejemplo n.º 1
0
 protected void OnWebServerStarted(XspResult result)
 {
     if (WebServerStarted != null)
     {
         WebServerStarted(this, new WebServerStartedEventArgs(result));
     }
 }
Ejemplo n.º 2
0
        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;
 }