public Task <RavenJObject> GetDatabaseConfigurationAsync() { return(innerAsyncServerClient.ExecuteWithReplication("GET", async operationMetadata => { return (RavenJObject)await adminRequest.GetDatabaseConfiguration(operationMetadata.Url).ReadResponseJsonAsync(); })); }
public Task <RavenJObject> GetDatabaseConfigurationAsync(CancellationToken token = default(CancellationToken)) { return(innerAsyncServerClient.ExecuteWithReplication("GET", async operationMetadata => { using (var request = adminRequest.GetDatabaseConfiguration(operationMetadata.Url)) { return (RavenJObject)await request.ReadResponseJsonAsync().WithCancellation(token); } }, token)); }
public Task <RavenJObject> GetDatabaseConfigurationAsync(CancellationToken token = default(CancellationToken)) { return(innerAsyncServerClient.ExecuteWithReplication(HttpMethods.Get, async(operationMetadata, requestTimeMetric) => { using (var request = adminRequest.GetDatabaseConfiguration(operationMetadata.Url)) { return (RavenJObject)await request.ReadResponseJsonAsync().WithCancellation(token).ConfigureAwait(false); } }, token)); }