/*
         * private static void Test_ListMalware(Host host)
         * {
         *  XenConnect conn = new XenConnect(host, testServerId, testip);
         *
         *  List<Application> malwareList = null;
         *  Console.WriteLine(conn.listMalwares(out malwareList).Message);
         *
         * }
         */
        private static void Test_ListVmApplications(Host host)
        {
            XenConnect conn = new XenConnect(host, testServerId, testip);
            MachineListenerResponse response = null;

            conn.getMachineApplicationList("172.16.10.89", 8080, out response);

            var serializer = new JavaScriptSerializer();

            serializer.MaxJsonLength = Int32.MaxValue;

            string serializedResponse = serializer.Serialize(response);

            Console.WriteLine(serializedResponse);
        }