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())); }
public Deployment(string deploymentName, DeploymentSlot deploymentSlot, ServiceConfiguration serviceConfig) : this() { Contract.Requires(deploymentName != null); Contract.Requires(serviceConfig != null); Name = Label = deploymentName; Slot = deploymentSlot; Configuration = serviceConfig; }