示例#1
0
#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);
示例#2
0
#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)));
示例#3
0
 public Task <IGetTaskResponse> GetTaskAsync(TaskId id, Func <GetTaskDescriptor, IGetTaskRequest> selector = null,
                                             CancellationToken cancellationToken = default(CancellationToken)
                                             ) =>
 GetTaskAsync(selector.InvokeOrDefault(new GetTaskDescriptor(id)), cancellationToken);
示例#4
0
 public GetTaskDescriptor TaskId(TaskId taskId) => Assign(taskId, (a, v) => a.RouteValues.Required("task_id", v));
示例#5
0
 public IGetTaskResponse GetTask(TaskId id, Func <GetTaskDescriptor, IGetTaskRequest> selector = null) =>
 GetTask(selector.InvokeOrDefault(new GetTaskDescriptor(id)));