public VMWareVirtualMachine(ManagedObjectReference vmmor, AppUtil.AppUtil cb, string vmId)
 {
     this.vmmor    = vmmor;
     this.cb       = cb;
     this.vmId     = vmId;
     this._service = cb.getConnection()._service;
     this._sic     = cb.getConnection()._sic;
 }
Beispiel #2
0
        /// <summary>
        /// Create the Managed Object References for the sample
        /// </summary>
        /// <param name="name">name of sample</param>
        public void CreateServiceRef(string name, string[] args)
        {
            var svcCon = cb.getConnection();

            _service    = svcCon.Service;
            _propCol    = svcCon.PropCol;
            _rootFolder = svcCon.Root;
        }
        public void powerOff()
        {
            ManagedObjectReference taskmor = null;

            taskmor = cb.getConnection().Service.PowerOffVM_Task(vmmor);
        }