コード例 #1
0
        /// <summary>
        /// Gets records by partition key as an asynchronous operation.
        /// </summary>
        /// <param name="partitionKey">The partition key.</param>
        /// <param name="filter">The filter.</param>
        /// <returns>Task&lt;IEnumerable&lt;T&gt;&gt;.</returns>
        public async Task <IEnumerable <T> > GetByPartitionKeyAsync(string partitionKey, Func <T, bool> filter)
        {
            var entities = await _tableStore.GetByPartitionKeyAsync(partitionKey).ConfigureAwait(false);

            var records = CreateRecords(entities);

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