コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <ServicePoint> servicePoints = new List <ServicePoint>();

            foreach (RemoteApplication app in RemoteApplication.GetApplications())
            {
                ServicePoint servicePoint = ServicePointManager.FindServicePoint(new Uri(app.RootUrl));
                if (!servicePoints.Contains(servicePoint))
                {
                    servicePoints.Add(servicePoint);
                }
            }

            ConnectionGridView.DataSource = servicePoints;
            ConnectionGridView.DataBind();
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     apps = RemoteApplication.GetApplications();
     ApplicationsGridView.DataSource = apps;
     ApplicationsGridView.DataBind();
 }