Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ServiceManagementCmdletTestHelper.GetAzureCertificate C# (CSharp) Method

GetAzureCertificate() public method

public GetAzureCertificate ( string serviceName, string thumbprint, string algorithm ) : Collection
serviceName string
thumbprint string
algorithm string
return Collection
        public Collection<CertificateContext> GetAzureCertificate(string serviceName, string thumbprint, string algorithm)
        {
            GetAzureCertificateCmdletInfo getAzureCertificateCmdletInfo = new GetAzureCertificateCmdletInfo(serviceName, thumbprint, algorithm);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(getAzureCertificateCmdletInfo);

            Collection<PSObject> result = azurePowershellCmdlet.Run();
            Collection<CertificateContext> certCtxts = new Collection<CertificateContext>();
            foreach (PSObject re in result)
            {
                certCtxts.Add((CertificateContext)re.BaseObject);
            }
            return certCtxts;
        }

Same methods

ServiceManagementCmdletTestHelper::GetAzureCertificate ( string serviceName ) : Collection
ServiceManagementCmdletTestHelper