Example #1
0
 /// <inheritdoc cref="PutLifecycle(Nest6.PolicyId,System.Func{Nest6.PutLifecycleDescriptor,Nest6.IPutLifecycleRequest})" />
 public IPutLifecycleResponse PutLifecycle(PolicyId policyId, Func <PutLifecycleDescriptor, IPutLifecycleRequest> selector = null) =>
 PutLifecycle(selector.InvokeOrDefault(new PutLifecycleDescriptor(policyId)));
Example #2
0
 /// <inheritdoc cref="PutLifecycle(Nest6.PolicyId,System.Func{Nest6.PutLifecycleDescriptor,Nest6.IPutLifecycleRequest})" />
 public Task <IPutLifecycleResponse> PutLifecycleAsync(PolicyId policyId, Func <PutLifecycleDescriptor, IPutLifecycleRequest> selector = null,
                                                       CancellationToken cancellationToken = default(CancellationToken)
                                                       ) =>
 PutLifecycleAsync(selector.InvokeOrDefault(new PutLifecycleDescriptor(policyId)), cancellationToken);
Example #3
0
 /// <inheritdoc cref="DeleteLifecycle(Nest6.PolicyId,System.Func{Nest6.DeleteLifecycleDescriptor,Nest6.IDeleteLifecycleRequest})" />
 public IDeleteLifecycleResponse DeleteLifecycle(PolicyId policyId, Func <DeleteLifecycleDescriptor, IDeleteLifecycleRequest> selector = null) =>
 DeleteLifecycle(selector.InvokeOrDefault(new DeleteLifecycleDescriptor(policyId)));