4
왜 CreateDocumentQuery의 비동기 버전이 없습니까?DocumentClient CreateDocumentQuery async
예를 들어이 방법은 비동기하고하는의 수 :
using (var client = new DocumentClient(new Uri(endpointUrl), authorizationKey, _connectionPolicy))
{
List<Property> propertiesOfUser =
client.CreateDocumentQuery<Property>(_collectionLink)
.Where(p => p.OwnerId == userGuid)
.ToList();
return propertiesOfUser;
}
'CreateDocumentQuery'는 단순히 쿼리를 생성하고 실행하지 않는다고 생각합니다. 아마도 ToList 대신에 ToListAsync를 사용하여 비동기 적으로 쿼리를 실행할 수 있습니다. –