Ejemplo n.º 1
0
 public Task StartIndexAsync(string name, CancellationToken token = new CancellationToken())
 {
     return(innerAsyncServerClient.ExecuteWithReplication(HttpMethods.Post, async operationMetadata =>
     {
         using (var req = adminRequest.StartIndex(operationMetadata.Url, name))
         {
             await req.ExecuteRequestAsync().WithCancellation(token).ConfigureAwait(false);
         }
     }, token));
 }