Exemplo 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>
        /// <returns>Task&lt;IEnumerable&lt;T&gt;&gt;.</returns>
        public async Task <IEnumerable <T> > GetByRowKeyAsync(string rowKey, Func <T, bool> filter)
        {
            var records = CreateRecords(await _tableStore.GetByRowKeyAsync(rowKey).ConfigureAwait(false));

            if (filter != null)
            {
                records = records.Where(filter);
            }

            return(records);
        }