Ejemplo n.º 1
0
        /// <summary>
        /// Gets records by row key. This method may be slow if there is a high volume of
        /// data across many partitions, prefer to use <see cref="GetByPartitionKeyAsync(string)"/>
        /// </summary>
        /// <param name="rowKey">The row key.</param>
        /// <param name="filter">The filter.</param>
        /// <param name="pageSize">Size of the page.</param>
        /// <param name="continuationTokenJson">The continuation token json.</param>
        /// <returns>Task&lt;PagedResult&lt;T&gt;&gt;.</returns>
        public async Task <PagedResult <T> > GetByRowKeyPagedAsync(string rowKey, Func <T, bool> filter, int pageSize = 100,
                                                                   string continuationTokenJson = null)
        {
            var result = await _tableStore.GetByRowKeyPagedAsync(rowKey, pageSize, continuationTokenJson).ConfigureAwait(false);

            return(CreatePagedResult(result, filter));
        }