Exemplo n.º 1
0
 public Task StopIndexingAsync(CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", async operationMetadata =>
     {
         using (var req = adminRequest.StopIndexing(operationMetadata.Url))
         {
             await req.ExecuteRequestAsync().WithCancellation(token).ConfigureAwait(false);
         }
     }, token));
 }
Exemplo n.º 2
0
 public Task StopIndexingAsync()
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StopIndexing(operationMetadata.Url).ExecuteRequestAsync()));
 }