Exemple #1
0
 /// <summary>
 /// The Get Management Certificate operation retrieves information
 /// about the management certificate with the specified thumbprint.
 /// Management certificates, which are also known as subscription
 /// certificates, authenticate clients attempting to connect to
 /// resources associated with your Windows Azure subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154131.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.IManagementCertificateOperations.
 /// </param>
 /// <param name='thumbprint'>
 /// The thumbprint value of the certificate to retrieve information
 /// about.
 /// </param>
 /// <returns>
 /// The Get Management Certificate operation response.
 /// </returns>
 public static ManagementCertificateGetResponse Get(this IManagementCertificateOperations operations, string thumbprint)
 {
     try
     {
         return(operations.GetAsync(thumbprint).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// The Get Management Certificate operation retrieves information
 /// about the management certificate with the specified thumbprint.
 /// Management certificates, which are also known as subscription
 /// certificates, authenticate clients attempting to connect to
 /// resources associated with your Windows Azure subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154131.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.IManagementCertificateOperations.
 /// </param>
 /// <param name='thumbprint'>
 /// The thumbprint value of the certificate to retrieve information
 /// about.
 /// </param>
 /// <returns>
 /// The Get Management Certificate operation response.
 /// </returns>
 public static Task <ManagementCertificateGetResponse> GetAsync(this IManagementCertificateOperations operations, string thumbprint)
 {
     return(operations.GetAsync(thumbprint, CancellationToken.None));
 }