Elastacloud.AzureManagement.Fluent.Commands.Certificates.AddServiceCertificateCommand.CreatePayload C# (CSharp) Method

CreatePayload() protected method

The creation of the XML payload necessary to make the request
protected CreatePayload ( ) : string
return string
        protected override string CreatePayload()
        {
            XNamespace ns = "http://schemas.microsoft.com/windowsazure";
            var doc = new XDocument(
                new XDeclaration("1.0", "utf-8", ""),
                new XElement(ns + "CertificateFile",
                             new XElement(ns + "Data", Base64CertificateData),
                             new XElement(ns + "CertificateFormat", "pfx"),
                             new XElement(ns + "Password", PfxPassword)));
            return doc.ToStringFullXmlDeclaration();
        }