/// <summary>
 /// Lists all of the Certificates that have been added to the specified
 /// Account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='certificateListOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <Certificate> List(this ICertificateOperations operations, CertificateListOptions certificateListOptions = default(CertificateListOptions))
 {
     return(operations.ListAsync(certificateListOptions).GetAwaiter().GetResult());
 }
示例#2
0
 /// <summary>
 /// Retrieve a list of certificates.  (see
 /// http://aka.ms/azureautomationsdk/certificateoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.ICertificateOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <returns>
 /// The response model for the list certificate operation.
 /// </returns>
 public static Task <CertificateListResponse> ListAsync(this ICertificateOperations operations, string automationAccount)
 {
     return(operations.ListAsync(automationAccount, CancellationToken.None));
 }