Example #1
0
 public Task DisableIndexAsync(string name, CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication(HttpMethods.Post, async operationMetadata =>
     {
         using (var req = adminRequest.DisableIndexAsync(operationMetadata.Url, name))
         {
             await req.ExecuteRequestAsync().WithCancellation(token).ConfigureAwait(false);
         }
     }, token));
 }