示例#1
0
        private void SetAPIVersion()
        {
            Dictionary <XenRef <Pool>, Pool> pools = Pool.get_all_records(this);

            foreach (Pool pool in pools.Values)
            {
                Host host = Host.get_record(this, pool.master);
                APIVersion = Helper.GetAPIVersion(host.API_version_major, host.API_version_minor);
                break;
            }
        }