Esempio n. 1
0
        //---------------------------------------------------------------------------------------------------------------------

        public OneNetwork(IfyContext context, VNET xmlrpcNet, CloudProvider provider) : base(context)
        {
            this.Name     = xmlrpcNet.NAME;
            this.RemoteId = xmlrpcNet.ID;
            this.Provider = provider;
        }
Esempio n. 2
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Queries the cloud provider to get the virtual networks corresponding to the Id.</summary>
        public override VirtualNetwork GetNetwork(string remoteId)
        {
            VNET vn = this.XmlRpc.VNetGetInfo(Int32.Parse(remoteId));

            return(new OneNetwork(context, vn, this));
        }