Exemplo n.º 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();
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     apps = RemoteApplication.GetApplications();
     ApplicationsGridView.DataSource = apps;
     ApplicationsGridView.DataBind();
 }