Exemplo n.º 1
0
 /// <summary>
 /// The List Management Certificates operation lists and returns basic
 /// information about all of the management certificates associated
 /// with the specified subscription. 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/jj154105.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.IManagementCertificateOperations.
 /// </param>
 /// <returns>
 /// The List Management Certificates operation response.
 /// </returns>
 public static ManagementCertificateListResponse List(this IManagementCertificateOperations operations)
 {
     try
     {
         return(operations.ListAsync().Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// The List Management Certificates operation lists and returns basic
 /// information about all of the management certificates associated
 /// with the specified subscription. 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/jj154105.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.IManagementCertificateOperations.
 /// </param>
 /// <returns>
 /// The List Management Certificates operation response.
 /// </returns>
 public static Task <ManagementCertificateListResponse> ListAsync(this IManagementCertificateOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }