/// <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<IEnumerable<T>>.</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); }