示例#1
0
 /// <summary>
 /// The Delete Management Certificate operation deletes a certificate
 /// from the list of management certificates. 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/jj154127.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 delete.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Delete(this IManagementCertificateOperations operations, string thumbprint)
 {
     try
     {
         return(operations.DeleteAsync(thumbprint).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
示例#2
0
 /// <summary>
 /// The Delete Management Certificate operation deletes a certificate
 /// from the list of management certificates. 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/jj154127.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 delete.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteAsync(this IManagementCertificateOperations operations, string thumbprint)
 {
     return(operations.DeleteAsync(thumbprint, CancellationToken.None));
 }