コード例 #1
0
 public Task <IndexingStatus> GetIndexingStatusAsync(CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication(
                HttpMethods.Get,
                async operationMetadata =>
     {
         using (var request = adminRequest.IndexesStatus(operationMetadata.Url))
         {
             var result = (RavenJObject)await request.ReadResponseJsonAsync().WithCancellation(token).ConfigureAwait(false);
             return result.Deserialize <IndexingStatus>(innerAsyncServerClient.convention);
         }
     },
                token));
 }