コード例 #1
0
ファイル: Deployment.cs プロジェクト: jamesmiles/API
 void PopulateFromXml(XElement element)
 {
     element.HydrateObject(XmlNamespaces.WindowsAzure, this);
     Slot = (DeploymentSlot)Enum.Parse(typeof(DeploymentSlot), (string)element.Element(XmlNamespaces.WindowsAzure + "DeploymentSlot"), true);
     if (!string.IsNullOrEmpty(Label)) Label = Label.FromBase64String();
     Configuration = new ServiceConfiguration(XElement.Parse(element.Element(XmlNamespaces.WindowsAzure + "Configuration").Value.FromBase64String()));
 }
コード例 #2
0
ファイル: Deployment.cs プロジェクト: jamesmiles/API
        public Deployment(string deploymentName, DeploymentSlot deploymentSlot, ServiceConfiguration serviceConfig)
            : this()
        {
            Contract.Requires(deploymentName != null);
            Contract.Requires(serviceConfig != null);

            Name = Label = deploymentName;
            Slot = deploymentSlot;
            Configuration = serviceConfig;
        }