public virtual async Task <IPagedCollection <IFluentResourceT> > ListByResourceGroupAsync(string resourceGroupName, bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IFluentResourceT, InnerResourceT> .LoadPage( async(cancellation) => await ListInnerByGroupAsync(resourceGroupName, cancellation), ListInnerByGroupNextAsync, WrapModel, loadAllPages, cancellationToken)); }
public virtual async Task <IPagedCollection <IFluentResourceT> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken)) { return(await PagedCollection <IFluentResourceT, InnerResourceT> .LoadPage(ListInnerAsync, ListInnerNextAsync, WrapModel, loadAllPages, cancellationToken)); }