Пример #1
0
 /// <summary>
 /// Lists a collection of all certificates in the specified service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='isKeyVaultRefreshFailed'>
 /// When set to true, the response contains only certificates entities which
 /// failed refresh.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <CertificateContract> > ListByServiceAsync(this ICertificateOperations operations, string resourceGroupName, string serviceName, ODataQuery <CertificateContract> odataQuery = default(ODataQuery <CertificateContract>), bool?isKeyVaultRefreshFailed = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, odataQuery, isKeyVaultRefreshFailed, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }