コード例 #1
0
 public Task <RavenJObject> GetDatabaseConfigurationAsync()
 {
     return(innerAsyncServerClient.ExecuteWithReplication("GET", async operationMetadata =>
     {
         return (RavenJObject)await adminRequest.GetDatabaseConfiguration(operationMetadata.Url).ReadResponseJsonAsync();
     }));
 }
コード例 #2
0
ファイル: AsyncAdminServerClient.cs プロジェクト: mow/ravendb
 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));
 }
コード例 #3
0
 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));
 }