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())); }
public Task StartIndexingAsync(int?maxNumberOfParallelIndexTasks = null) { return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StartIndexing(operationMetadata.Url, maxNumberOfParallelIndexTasks).ExecuteRequestAsync())); }