コード例 #1
0
 private void getData()
 {
     string version = null;
     string platform = null;
     string hoster = null;
     string binding = null;
     Input.getHostData(IsPostBack, ViewState, out userid, out address, out user, out binding, out hostNameIdentifier, out configName, out version, out platform, out hoster, false);
     UTC.Text = "<span style=\"color:silver;font-size:1.1em;padding-left:20px;\">" + DateTime.Now.ToUniversalTime().ToString("f") + " (UTC)";
     try
     {
         configProxy = new ServiceConfigurationClient(binding, address, user);
         mySOA = configProxy.getSOAMap(hostNameIdentifier, configName, null, user);  //this one call gets the entire network deployment across the world, complete with perf stats.
         soaTreeView.Nodes.Clear();
         if (mySOA != null && mySOA.MyVirtualHost != null)
         {
             fillMap(soaTreeView);  //now display it.
         }
     }
     catch (Exception eSoa)
         {
             InValid.Text = "Error Getting SOA Map (try again).  Exception is: <br/>" + eSoa.ToString();
         }
 }