Esempio n. 1
0
        protected override void PerformOperation(IServiceManagement channel)
        {
            Deployment deployment = null;

            if (!string.IsNullOrEmpty(DeploymentName))
            {
                deployment = channel.GetDeployment(SubscriptionId, HostedServiceName, DeploymentName);
            }
            else if (!string.IsNullOrEmpty(DeploymentSlot))
            {
                deployment = channel.GetDeploymentBySlot(SubscriptionId, HostedServiceName, DeploymentSlot);

            }
            String xml = new System.Text.UTF8Encoding().GetString(Convert.FromBase64String(deployment.Configuration));
            xml = xml.Replace("xml version=\"1.0\" encoding=\"utf-16\"", "xml version=\"1.0\" encoding=\"utf-8\"");
            Console.WriteLine(xml);
        }