/// <summary> /// The Delete Client Root Certificate operation deletes a previously /// uploaded client root certificate. from Windows Azure (see /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205128.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations. /// </param> /// <param name='virtualNetworkName'> /// The name of the virtual network for this gateway. /// </param> /// <param name='certificateThumbprint'> /// The X509 certificate thumbprint. /// </param> /// <returns> /// A standard storage response including an HTTP status code and /// request ID. /// </returns> public static GatewayOperationResponse Delete(this IClientRootCertificateOperations operations, string virtualNetworkName, string certificateThumbprint) { try { return(operations.DeleteAsync(virtualNetworkName, certificateThumbprint).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Delete Client Root Certificate operation deletes a previously /// uploaded client root certificate from Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205128.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations. /// </param> /// <param name='networkName'> /// Required. The name of the virtual network for this gateway. /// </param> /// <param name='certificateThumbprint'> /// Required. The X509 certificate thumbprint. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <GatewayOperationResponse> DeleteAsync(this IClientRootCertificateOperations operations, string networkName, string certificateThumbprint) { return(operations.DeleteAsync(networkName, certificateThumbprint, CancellationToken.None)); }