为什么没有使用 RequestOptions 的 CreateDocumentQuery 重载

Why there is no overload of CreateDocumentQuery with RequestOptions

documentation

中所述

However, you can relax the consistency level of a specific read/query request by specifying the [x-ms-consistency-level] request header.

在 DocumentDB .NET SDK (1.13.0) 中,许多方法(包括 READ 和 WRITE)例如 ReadDatabaseAsync 有一个重载 RequestOptions 允许您选择一致性。

最常用的方法CreateDocumentQuery没有这种重载。我是不是遗漏了什么(并且对这种方法使用 RequestOptions 没有任何意义)或 DocDb SDK 开发人员忘记添加此功能?

这是 DocumentDB .NET SDK 中的一个漏洞。

https://github.com/Azure/azure-documentdb-dotnet/issues/243 正在跟踪对 FeedOptions.ConsistencyLevel 的支持,以覆盖查询和阅读提要的请求一致性级别。