Example #1
0
        public PublishedApplication[] GetApplicationsByCredentials(Credentials credentials, string clientName, string ipAddress, string[] desiredDetails, string[] serverTypes, string[] clientTypes)
        {
            ApplicationItem[]           items = null;
            List <PublishedApplication> apps  = new List <PublishedApplication>();

            foreach (Farm farm in farms)
            {
                WSConstants.CTX_XML    = farm.Url;
                WSConstants.CTXXMLPort = farm.Port;

                items = WebService.GetApplicationsByCredentials(credentials, clientName, ipAddress, desiredDetails, serverTypes, clientTypes);
                if (items != null)
                {
                    foreach (var item in items)
                    {
                        PublishedApplication app = new PublishedApplication();
                        app.FarmName = farm.Name;
                        app.Item     = item;
                        apps.Add(app);
                    }
                }
            }
            return(apps.ToArray());
        }
Example #2
0
 public static void CreateSmallIcon(PublishedApplication app)
 {
     CreateIcon("small", app.SmallIcon, app.IconFileName);
 }
Example #3
0
 public static void CreateLargeIcon(PublishedApplication app)
 {
     CreateIcon("large", app.LargeIcon, app.IconFileName);
 }