Example #1
0
 public Task StartIndexingAsync(int?maxNumberOfParallelIndexTasks = null, CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", async operationMetadata =>
     {
         using (var req = adminRequest.StartIndexing(operationMetadata.Url, maxNumberOfParallelIndexTasks))
         {
             await req.ExecuteRequestAsync().WithCancellation(token).ConfigureAwait(false);
         }
     }, token));
 }
 public Task StartIndexingAsync()
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StartIndexing(operationMetadata.Url).ExecuteRequestAsync()));
 }
Example #3
0
 public Task StartIndexingAsync(int?maxNumberOfParallelIndexTasks = null)
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StartIndexing(operationMetadata.Url, maxNumberOfParallelIndexTasks).ExecuteRequestAsync()));
 }