public async Task <ApiKeyDefinition> GetApiKeyAsync(string name, CancellationToken token = default(CancellationToken)) { using (var request = adminRequest.CreateGetApiKeyRequest(name)) { var json = (RavenJObject)await request.ReadResponseJsonAsync().WithCancellation(token).ConfigureAwait(false); return(json.Deserialize <ApiKeyDefinition>(innerAsyncServerClient.convention)); } }