sdk/dotnet/test/Microsoft.Datasync.Client.Test/Table/Operations.RemoteTable/GetAsyncItems.Test.cs
/// <summary>
/// Gets all the items from the list of items returned.
/// </summary>
/// <returns></returns>
Gets all the items from the list of items returned.
Gets all the items from the list of items returned .
private async Task<List<JObject>> GetAllItems(IRemoteTable table = null, long? nItems = null)
        {
            table ??= base.table;
            List<JObject> items = new();
            var pageable = table.GetAsyncItems("") as AsyncPageable<JToken>;
            await foreach (var item in pageable)
            {
                if (nItems != null)
                {
                    Assert.Equal(nItems!, pageable.Count);
                }
                items.Add(item as JObject);
            }
            return items;
        }
private async Task < List < JObject > > GetAllItems ( IRemoteTable table = null , long ? nItems = null ) { table ??= base . table ; List < JObject > items = new ( ) ; var pageable = table . GetAsyncItems ( " " ) as AsyncPageable < JToken > ; await foreach ( var item in pageable ) { if ( nItems != null ) { Assert . Equal ( nItems ! , pageable . Count ) ; } items . Add ( item as JObject ) ; } return items ; }
Gets all the items from the list of items returned.
Gets all the items from the list of items returned .
None
table
IRemoteTable
nItems
long?