#pragma warning restore 618 /// <summary> /// Rethrottle an existing reindex or update by query task /// </summary> public Task <IReindexRethrottleResponse> RethrottleAsync(TaskId id, Func <ReindexRethrottleDescriptor, IReindexRethrottleRequest> selector = null, CancellationToken cancellationToken = default(CancellationToken) ) => RethrottleAsync(selector.InvokeOrDefault(new ReindexRethrottleDescriptor(id)), cancellationToken);
#pragma warning restore 618 /// <summary> /// Rethrottle an existing reindex or update by query task /// </summary> public IReindexRethrottleResponse Rethrottle(TaskId id, Func <ReindexRethrottleDescriptor, IReindexRethrottleRequest> selector = null) => Rethrottle(selector.InvokeOrDefault(new ReindexRethrottleDescriptor(id)));
public Task <IGetTaskResponse> GetTaskAsync(TaskId id, Func <GetTaskDescriptor, IGetTaskRequest> selector = null, CancellationToken cancellationToken = default(CancellationToken) ) => GetTaskAsync(selector.InvokeOrDefault(new GetTaskDescriptor(id)), cancellationToken);
public GetTaskDescriptor TaskId(TaskId taskId) => Assign(taskId, (a, v) => a.RouteValues.Required("task_id", v));
public IGetTaskResponse GetTask(TaskId id, Func <GetTaskDescriptor, IGetTaskRequest> selector = null) => GetTask(selector.InvokeOrDefault(new GetTaskDescriptor(id)));