Search code examples
azure-service-fabric

What is the best way to get the keys of IreliableDictionary


I basically have a name value collection but the collections are pretty big and i can see all the enumerableasynch methods fetch the name value pairs.

A second collection of just keys could possible do this if there is no better way but even this is a bit tricky since there is no set or collection .


Solution

  • You can enumerate the keys using IReliableDictionary2.CreateKeyEnumerableAsync.