/// <summary> /// The Get Service Certificate operation returns the public data for /// the specified X.509 certificate associated with a hosted service. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460792.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations. /// </param> /// <param name='parameters'> /// Parameters supplied to the Get Service Certificate operation. /// </param> /// <returns> /// The Get Service Certificate operation response. /// </returns> public static ServiceCertificateGetResponse Get(this IServiceCertificateOperations operations, ServiceCertificateGetParameters parameters) { try { return(operations.GetAsync(parameters).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Get Service Certificate operation returns the public data for /// the specified X.509 certificate associated with a hosted service. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460792.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations. /// </param> /// <param name='parameters'> /// Parameters supplied to the Get Service Certificate operation. /// </param> /// <returns> /// The Get Service Certificate operation response. /// </returns> public static Task <ServiceCertificateGetResponse> GetAsync(this IServiceCertificateOperations operations, ServiceCertificateGetParameters parameters) { return(operations.GetAsync(parameters, CancellationToken.None)); }