public async Task <QueryResult> ScanAsync(ScanRequest request) { var httpRequest = Setup("Scan", request.ToJson()); var json = await SendAndReadJsonElementAsync(httpRequest).ConfigureAwait(false); return(QueryResult.FromJsonElement(json)); }
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)); }