/// <summary>
 /// The List Service Certificates operation lists all of the service
 /// certificates associated with the specified hosted service.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154105.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations.
 /// </param>
 /// <param name='serviceName'>
 /// The DNS prefix name of your hosted service.
 /// </param>
 /// <returns>
 /// The List Service Certificates operation response.
 /// </returns>
 public static ServiceCertificateListResponse List(this IServiceCertificateOperations operations, string serviceName)
 {
     try
     {
         return(operations.ListAsync(serviceName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The List Service Certificates operation lists all of the service
 /// certificates associated with the specified hosted service.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154105.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations.
 /// </param>
 /// <param name='serviceName'>
 /// The DNS prefix name of your hosted service.
 /// </param>
 /// <returns>
 /// The List Service Certificates operation response.
 /// </returns>
 public static Task <ServiceCertificateListResponse> ListAsync(this IServiceCertificateOperations operations, string serviceName)
 {
     return(operations.ListAsync(serviceName, CancellationToken.None));
 }