예제 #1
0
        public async Task <QueryResult> ScanAsync(ScanRequest request)
        {
            var httpRequest = Setup("Scan", request.ToJson());

            var json = await SendAndReadJsonElementAsync(httpRequest).ConfigureAwait(false);

            return(QueryResult.FromJsonElement(json));
        }
예제 #2
0
        public async Task <QueryResult> ScanAsync(ScanRequest request)
        {
            var httpRequest = Setup("Scan", request.ToJson());

            var responseText = await SendAsync(httpRequest).ConfigureAwait(false);

            var responseJson = JsonObject.Parse(responseText);

            return(QueryResult.FromJson(responseJson));
        }