public async Task <AdminStatistics> GetStatisticsAsync(CancellationToken token = default(CancellationToken)) { using (var req = adminRequest.AdminStats()) { var json = (RavenJObject)await req.ReadResponseJsonAsync().WithCancellation(token).ConfigureAwait(false); return(json.Deserialize <AdminStatistics>(innerAsyncServerClient.convention)); } }
public async Task <AdminStatistics> GetStatisticsAsync() { var json = (RavenJObject)await adminRequest.AdminStats().ReadResponseJsonAsync(); return(json.Deserialize <AdminStatistics>(innerAsyncServerClient.convention)); }