public CcrFollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action<CcrFollowRequestDescriptor> configureRequest = null) { var descriptor = new CcrFollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest<CcrFollowRequestDescriptor, CcrFollowResponse>(descriptor); }
public Task<CcrFollowResponse> FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action<CcrFollowRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new CcrFollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync<CcrFollowRequestDescriptor, CcrFollowResponse>(descriptor); }