示例#1
0
 internal void UpdateFrom(Proxy_PVS_server proxy)
 {
     uuid       = proxy.uuid == null ? null : proxy.uuid;
     addresses  = proxy.addresses == null ? new string[] {} : (string [])proxy.addresses;
     first_port = proxy.first_port == null ? 0 : long.Parse(proxy.first_port);
     last_port  = proxy.last_port == null ? 0 : long.Parse(proxy.last_port);
     site       = proxy.site == null ? null : XenRef <PVS_site> .Create(proxy.site);
 }
示例#2
0
        public Proxy_PVS_server ToProxy()
        {
            Proxy_PVS_server result_ = new Proxy_PVS_server();

            result_.uuid       = uuid ?? "";
            result_.addresses  = addresses;
            result_.first_port = first_port.ToString();
            result_.last_port  = last_port.ToString();
            result_.site       = site ?? "";
            return(result_);
        }
示例#3
0
        public Proxy_PVS_server ToProxy()
        {
            Proxy_PVS_server result_ = new Proxy_PVS_server();

            result_.uuid       = (uuid != null) ? uuid : "";
            result_.addresses  = addresses;
            result_.first_port = first_port.ToString();
            result_.last_port  = last_port.ToString();
            result_.site       = (site != null) ? site : "";
            return(result_);
        }
示例#4
0
 /// <summary>
 /// Creates a new PVS_server from a Proxy_PVS_server.
 /// </summary>
 /// <param name="proxy"></param>
 public PVS_server(Proxy_PVS_server proxy)
 {
     UpdateFrom(proxy);
 }
示例#5
0
 /// <summary>
 /// Creates a new PVS_server from a Proxy_PVS_server.
 /// </summary>
 /// <param name="proxy"></param>
 public PVS_server(Proxy_PVS_server proxy)
 {
     this.UpdateFromProxy(proxy);
 }