/// <summary> /// Lists the containers registered to Recovery Services Vault. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='fabricName'> /// Fabric name associated with the container. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ProtectableContainerResource> > ListAsync(this IProtectableContainersOperations operations, string vaultName, string resourceGroupName, string fabricName, ODataQuery <BMSContainerQueryObject> odataQuery = default(ODataQuery <BMSContainerQueryObject>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(vaultName, resourceGroupName, fabricName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }