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)); }
public Task StopIndexingAsync() { return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StopIndexing(operationMetadata.Url).ExecuteRequestAsync())); }