/// <summary> /// Returns a list of destination shares that the system considers as best /// candidates for migration. /// </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='shareName'> /// Share name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <Share> > ListDestinationSharesAsync(this IContainersOperations operations, string resourceGroupName, string farmId, string shareName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListDestinationSharesWithHttpMessagesAsync(resourceGroupName, farmId, shareName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }