Пример #1
0
        public Task <string> GetIndexingStatusAsync()
        {
            return(innerAsyncServerClient.ExecuteWithReplication("GET", async operationMetadata =>
            {
                var result = await adminRequest.IndexingStatus(operationMetadata.Url).ReadResponseJsonAsync();

                return result.Value <string>("IndexingStatus");
            }));
        }
Пример #2
0
 public Task <string> GetIndexingStatusAsync(CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication("GET", async operationMetadata =>
     {
         using (var request = adminRequest.IndexingStatus(operationMetadata.Url))
         {
             var result = await request.ReadResponseJsonAsync().WithCancellation(token).ConfigureAwait(false);
             return result.Value <string>("IndexingStatus");
         }
     }, token));
 }
Пример #3
0
 public Task <IndexingStatus> GetIndexingStatusAsync(CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication(HttpMethods.Get, async(operationMetadata, requestTimeMetric) =>
     {
         using (var request = adminRequest.IndexingStatus(operationMetadata.Url))
         {
             var result = (RavenJObject)await request.ReadResponseJsonAsync().WithCancellation(token).ConfigureAwait(false);
             return result.Deserialize <IndexingStatus>(innerAsyncServerClient.convention);
         }
     }, token));
 }