/// <summary>
 /// Insert multiple records with the Add() function.
 /// </summary>
 /// <param name="numRecords">The number of records to insert.</param>
 public void InsertRecordsWithAddFunction(int numRecords)
 {
     for (int i = 0; i < numRecords; ++i)
     {
         RetryIfDisposed(() => PerfDictionary.Add(this.GetNextKey(), this.persistentBlob));
     }
 }
 /// <summary>
 /// Retrieve all records in the table.
 /// </summary>
 public void RetrieveAllRecords()
 {
     RetryIfDisposed(
         () =>
     {
         foreach (var entry in PerfDictionary.Keys)
         {
             PersistentBlob retrievedBytes;
             bool isPresent = PerfDictionary.TryGetValue(this.lastKey, out retrievedBytes);
         }
     });
 }
 /// <summary>
 /// Repeatedly retrieve one record using TryGetValue.
 /// </summary>
 /// <param name="numRetrieves">The number of times to retrieve the record.</param>
 public void RepeatedlyRetrieveOneRecordWithTryGetValue(int numRetrieves)
 {
     for (int i = 0; i < numRetrieves; ++i)
     {
         RetryIfDisposed(
             () =>
         {
             PersistentBlob retrievedBytes;
             bool isPresent = PerfDictionary.TryGetValue(this.lastKey, out retrievedBytes);
             //// Can't guarantee that the key is present.
         });
     }
 }