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