获取 IreliableDictionary 键的最佳方法是什么

What is the best way to get the keys of IreliableDictionary

我基本上有一个名称值集合,但集合非常大,我可以看到所有 enumerableasynch 方法都获取名称值对。

如果没有更好的方法,第二个仅包含键的集合可以做到这一点,但即使这样也有点棘手,因为没有集合或集合。

您可以使用 IReliableDictionary2.CreateKeyEnumerableAsync 枚举键。