Пример #1
0
        internal void UpdateFromProxy(Proxy_VTPM proxy)
        {
            this.uuid = (proxy.uuid == null) ? null : proxy.uuid;
            this.VM   = (proxy.VM == null) ? null : XenRef <WinAPI.VM> .Create(proxy.VM);

            this.backend = (proxy.backend == null) ? null : XenRef <WinAPI.VM> .Create(proxy.backend);
        }
Пример #2
0
        public override string SaveChanges(Session session, string opaqueRef, VTPM server)
        {
            if (opaqueRef != null)
            {
                throw new InvalidOperationException("This type has no read/write properties");
            }
            Proxy_VTPM y_vtpm = this.ToProxy();

            return(session.proxy.vtpm_create(session.uuid, y_vtpm).parse());
        }
Пример #3
0
 public VTPM(Proxy_VTPM proxy)
 {
     this.UpdateFromProxy(proxy);
 }