/// <summary> /// Returns a list of BLOB acquisitions. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// Resource location. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AcquisitionList> ListAsync(this IAcquisitionsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of BLOB acquistions. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Resource group name. /// </param> /// <param name='farmId'> /// Farm Id. /// </param> /// <param name='filter'> /// Filter string /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <Acquisition> > ListAsync(this IAcquisitionsOperations operations, string resourceGroupName, string farmId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, farmId, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }