Skip to content

Commit 827dc5d

Browse files
Pass ctx for descriptor-based client methods (#7676) (#7679)
Fix applied in the generator to ensure we pass along the cancellation token to DoRequestAsync. Co-authored-by: Steve Gordon <[email protected]>
1 parent a473fb2 commit 827dc5d

11 files changed

+455
-455
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs

+16-16
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public virtual Task<AsyncSearchStatusResponse> StatusAsync(Elastic.Clients.Elast
119119
{
120120
var descriptor = new AsyncSearchStatusRequestDescriptor(id);
121121
descriptor.BeforeRequest();
122-
return DoRequestAsync<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor);
122+
return DoRequestAsync<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken);
123123
}
124124

125125
/// <summary>
@@ -129,7 +129,7 @@ public virtual Task<AsyncSearchStatusResponse> StatusAsync(Elastic.Clients.Elast
129129
public virtual Task<AsyncSearchStatusResponse> StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default)
130130
{
131131
descriptor.BeforeRequest();
132-
return DoRequestAsync<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor);
132+
return DoRequestAsync<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken);
133133
}
134134

135135
/// <summary>
@@ -141,7 +141,7 @@ public virtual Task<AsyncSearchStatusResponse> StatusAsync(Elastic.Clients.Elast
141141
var descriptor = new AsyncSearchStatusRequestDescriptor(id);
142142
configureRequest?.Invoke(descriptor);
143143
descriptor.BeforeRequest();
144-
return DoRequestAsync<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor);
144+
return DoRequestAsync<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken);
145145
}
146146

147147
/// <summary>
@@ -151,7 +151,7 @@ public virtual Task<AsyncSearchStatusResponse> StatusAsync(Elastic.Clients.Elast
151151
public virtual Task<AsyncSearchStatusResponse> StatusAsync<TDocument>(AsyncSearchStatusRequestDescriptor<TDocument> descriptor, CancellationToken cancellationToken = default)
152152
{
153153
descriptor.BeforeRequest();
154-
return DoRequestAsync<AsyncSearchStatusRequestDescriptor<TDocument>, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor);
154+
return DoRequestAsync<AsyncSearchStatusRequestDescriptor<TDocument>, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken);
155155
}
156156

157157
/// <summary>
@@ -163,7 +163,7 @@ public virtual Task<AsyncSearchStatusResponse> StatusAsync<TDocument>(Elastic.Cl
163163
var descriptor = new AsyncSearchStatusRequestDescriptor<TDocument>(id);
164164
configureRequest?.Invoke(descriptor);
165165
descriptor.BeforeRequest();
166-
return DoRequestAsync<AsyncSearchStatusRequestDescriptor<TDocument>, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor);
166+
return DoRequestAsync<AsyncSearchStatusRequestDescriptor<TDocument>, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken);
167167
}
168168

169169
/// <summary>
@@ -249,7 +249,7 @@ public virtual Task<DeleteAsyncSearchResponse> DeleteAsync(Elastic.Clients.Elast
249249
{
250250
var descriptor = new DeleteAsyncSearchRequestDescriptor(id);
251251
descriptor.BeforeRequest();
252-
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor);
252+
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken);
253253
}
254254

255255
/// <summary>
@@ -259,7 +259,7 @@ public virtual Task<DeleteAsyncSearchResponse> DeleteAsync(Elastic.Clients.Elast
259259
public virtual Task<DeleteAsyncSearchResponse> DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default)
260260
{
261261
descriptor.BeforeRequest();
262-
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor);
262+
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken);
263263
}
264264

265265
/// <summary>
@@ -271,7 +271,7 @@ public virtual Task<DeleteAsyncSearchResponse> DeleteAsync(Elastic.Clients.Elast
271271
var descriptor = new DeleteAsyncSearchRequestDescriptor(id);
272272
configureRequest?.Invoke(descriptor);
273273
descriptor.BeforeRequest();
274-
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor);
274+
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken);
275275
}
276276

277277
/// <summary>
@@ -281,7 +281,7 @@ public virtual Task<DeleteAsyncSearchResponse> DeleteAsync(Elastic.Clients.Elast
281281
public virtual Task<DeleteAsyncSearchResponse> DeleteAsync<TDocument>(DeleteAsyncSearchRequestDescriptor<TDocument> descriptor, CancellationToken cancellationToken = default)
282282
{
283283
descriptor.BeforeRequest();
284-
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor<TDocument>, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor);
284+
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor<TDocument>, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken);
285285
}
286286

287287
/// <summary>
@@ -293,7 +293,7 @@ public virtual Task<DeleteAsyncSearchResponse> DeleteAsync<TDocument>(Elastic.Cl
293293
var descriptor = new DeleteAsyncSearchRequestDescriptor<TDocument>(id);
294294
configureRequest?.Invoke(descriptor);
295295
descriptor.BeforeRequest();
296-
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor<TDocument>, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor);
296+
return DoRequestAsync<DeleteAsyncSearchRequestDescriptor<TDocument>, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken);
297297
}
298298

299299
/// <summary>
@@ -357,7 +357,7 @@ public virtual Task<GetAsyncSearchResponse<TDocument>> GetAsync<TDocument>(Elast
357357
{
358358
var descriptor = new GetAsyncSearchRequestDescriptor<TDocument>(id);
359359
descriptor.BeforeRequest();
360-
return DoRequestAsync<GetAsyncSearchRequestDescriptor<TDocument>, GetAsyncSearchResponse<TDocument>, GetAsyncSearchRequestParameters>(descriptor);
360+
return DoRequestAsync<GetAsyncSearchRequestDescriptor<TDocument>, GetAsyncSearchResponse<TDocument>, GetAsyncSearchRequestParameters>(descriptor, cancellationToken);
361361
}
362362

363363
/// <summary>
@@ -367,7 +367,7 @@ public virtual Task<GetAsyncSearchResponse<TDocument>> GetAsync<TDocument>(Elast
367367
public virtual Task<GetAsyncSearchResponse<TDocument>> GetAsync<TDocument>(GetAsyncSearchRequestDescriptor<TDocument> descriptor, CancellationToken cancellationToken = default)
368368
{
369369
descriptor.BeforeRequest();
370-
return DoRequestAsync<GetAsyncSearchRequestDescriptor<TDocument>, GetAsyncSearchResponse<TDocument>, GetAsyncSearchRequestParameters>(descriptor);
370+
return DoRequestAsync<GetAsyncSearchRequestDescriptor<TDocument>, GetAsyncSearchResponse<TDocument>, GetAsyncSearchRequestParameters>(descriptor, cancellationToken);
371371
}
372372

373373
/// <summary>
@@ -379,7 +379,7 @@ public virtual Task<GetAsyncSearchResponse<TDocument>> GetAsync<TDocument>(Elast
379379
var descriptor = new GetAsyncSearchRequestDescriptor<TDocument>(id);
380380
configureRequest?.Invoke(descriptor);
381381
descriptor.BeforeRequest();
382-
return DoRequestAsync<GetAsyncSearchRequestDescriptor<TDocument>, GetAsyncSearchResponse<TDocument>, GetAsyncSearchRequestParameters>(descriptor);
382+
return DoRequestAsync<GetAsyncSearchRequestDescriptor<TDocument>, GetAsyncSearchResponse<TDocument>, GetAsyncSearchRequestParameters>(descriptor, cancellationToken);
383383
}
384384

385385
/// <summary>
@@ -443,7 +443,7 @@ public virtual Task<SubmitAsyncSearchResponse<TDocument>> SubmitAsync<TDocument>
443443
{
444444
var descriptor = new SubmitAsyncSearchRequestDescriptor<TDocument>();
445445
descriptor.BeforeRequest();
446-
return DoRequestAsync<SubmitAsyncSearchRequestDescriptor<TDocument>, SubmitAsyncSearchResponse<TDocument>, SubmitAsyncSearchRequestParameters>(descriptor);
446+
return DoRequestAsync<SubmitAsyncSearchRequestDescriptor<TDocument>, SubmitAsyncSearchResponse<TDocument>, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken);
447447
}
448448

449449
/// <summary>
@@ -453,7 +453,7 @@ public virtual Task<SubmitAsyncSearchResponse<TDocument>> SubmitAsync<TDocument>
453453
public virtual Task<SubmitAsyncSearchResponse<TDocument>> SubmitAsync<TDocument>(SubmitAsyncSearchRequestDescriptor<TDocument> descriptor, CancellationToken cancellationToken = default)
454454
{
455455
descriptor.BeforeRequest();
456-
return DoRequestAsync<SubmitAsyncSearchRequestDescriptor<TDocument>, SubmitAsyncSearchResponse<TDocument>, SubmitAsyncSearchRequestParameters>(descriptor);
456+
return DoRequestAsync<SubmitAsyncSearchRequestDescriptor<TDocument>, SubmitAsyncSearchResponse<TDocument>, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken);
457457
}
458458

459459
/// <summary>
@@ -465,6 +465,6 @@ public virtual Task<SubmitAsyncSearchResponse<TDocument>> SubmitAsync<TDocument>
465465
var descriptor = new SubmitAsyncSearchRequestDescriptor<TDocument>();
466466
configureRequest?.Invoke(descriptor);
467467
descriptor.BeforeRequest();
468-
return DoRequestAsync<SubmitAsyncSearchRequestDescriptor<TDocument>, SubmitAsyncSearchResponse<TDocument>, SubmitAsyncSearchRequestParameters>(descriptor);
468+
return DoRequestAsync<SubmitAsyncSearchRequestDescriptor<TDocument>, SubmitAsyncSearchResponse<TDocument>, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken);
469469
}
470470
}

src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs

+17-17
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public virtual Task<AllocationExplainResponse> AllocationExplainAsync(Cancellati
9797
{
9898
var descriptor = new AllocationExplainRequestDescriptor();
9999
descriptor.BeforeRequest();
100-
return DoRequestAsync<AllocationExplainRequestDescriptor, AllocationExplainResponse, AllocationExplainRequestParameters>(descriptor);
100+
return DoRequestAsync<AllocationExplainRequestDescriptor, AllocationExplainResponse, AllocationExplainRequestParameters>(descriptor, cancellationToken);
101101
}
102102

103103
/// <summary>
@@ -107,7 +107,7 @@ public virtual Task<AllocationExplainResponse> AllocationExplainAsync(Cancellati
107107
public virtual Task<AllocationExplainResponse> AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default)
108108
{
109109
descriptor.BeforeRequest();
110-
return DoRequestAsync<AllocationExplainRequestDescriptor, AllocationExplainResponse, AllocationExplainRequestParameters>(descriptor);
110+
return DoRequestAsync<AllocationExplainRequestDescriptor, AllocationExplainResponse, AllocationExplainRequestParameters>(descriptor, cancellationToken);
111111
}
112112

113113
/// <summary>
@@ -119,7 +119,7 @@ public virtual Task<AllocationExplainResponse> AllocationExplainAsync(Action<All
119119
var descriptor = new AllocationExplainRequestDescriptor();
120120
configureRequest?.Invoke(descriptor);
121121
descriptor.BeforeRequest();
122-
return DoRequestAsync<AllocationExplainRequestDescriptor, AllocationExplainResponse, AllocationExplainRequestParameters>(descriptor);
122+
return DoRequestAsync<AllocationExplainRequestDescriptor, AllocationExplainResponse, AllocationExplainRequestParameters>(descriptor, cancellationToken);
123123
}
124124

125125
/// <summary>
@@ -183,7 +183,7 @@ public virtual Task<ClusterStatsResponse> StatsAsync(CancellationToken cancellat
183183
{
184184
var descriptor = new ClusterStatsRequestDescriptor();
185185
descriptor.BeforeRequest();
186-
return DoRequestAsync<ClusterStatsRequestDescriptor, ClusterStatsResponse, ClusterStatsRequestParameters>(descriptor);
186+
return DoRequestAsync<ClusterStatsRequestDescriptor, ClusterStatsResponse, ClusterStatsRequestParameters>(descriptor, cancellationToken);
187187
}
188188

189189
/// <summary>
@@ -193,7 +193,7 @@ public virtual Task<ClusterStatsResponse> StatsAsync(CancellationToken cancellat
193193
public virtual Task<ClusterStatsResponse> StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default)
194194
{
195195
descriptor.BeforeRequest();
196-
return DoRequestAsync<ClusterStatsRequestDescriptor, ClusterStatsResponse, ClusterStatsRequestParameters>(descriptor);
196+
return DoRequestAsync<ClusterStatsRequestDescriptor, ClusterStatsResponse, ClusterStatsRequestParameters>(descriptor, cancellationToken);
197197
}
198198

199199
/// <summary>
@@ -205,7 +205,7 @@ public virtual Task<ClusterStatsResponse> StatsAsync(Action<ClusterStatsRequestD
205205
var descriptor = new ClusterStatsRequestDescriptor();
206206
configureRequest?.Invoke(descriptor);
207207
descriptor.BeforeRequest();
208-
return DoRequestAsync<ClusterStatsRequestDescriptor, ClusterStatsResponse, ClusterStatsRequestParameters>(descriptor);
208+
return DoRequestAsync<ClusterStatsRequestDescriptor, ClusterStatsResponse, ClusterStatsRequestParameters>(descriptor, cancellationToken);
209209
}
210210

211211
/// <summary>
@@ -269,7 +269,7 @@ public virtual Task<GetClusterSettingsResponse> GetSettingsAsync(CancellationTok
269269
{
270270
var descriptor = new GetClusterSettingsRequestDescriptor();
271271
descriptor.BeforeRequest();
272-
return DoRequestAsync<GetClusterSettingsRequestDescriptor, GetClusterSettingsResponse, GetClusterSettingsRequestParameters>(descriptor);
272+
return DoRequestAsync<GetClusterSettingsRequestDescriptor, GetClusterSettingsResponse, GetClusterSettingsRequestParameters>(descriptor, cancellationToken);
273273
}
274274

275275
/// <summary>
@@ -279,7 +279,7 @@ public virtual Task<GetClusterSettingsResponse> GetSettingsAsync(CancellationTok
279279
public virtual Task<GetClusterSettingsResponse> GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default)
280280
{
281281
descriptor.BeforeRequest();
282-
return DoRequestAsync<GetClusterSettingsRequestDescriptor, GetClusterSettingsResponse, GetClusterSettingsRequestParameters>(descriptor);
282+
return DoRequestAsync<GetClusterSettingsRequestDescriptor, GetClusterSettingsResponse, GetClusterSettingsRequestParameters>(descriptor, cancellationToken);
283283
}
284284

285285
/// <summary>
@@ -291,7 +291,7 @@ public virtual Task<GetClusterSettingsResponse> GetSettingsAsync(Action<GetClust
291291
var descriptor = new GetClusterSettingsRequestDescriptor();
292292
configureRequest?.Invoke(descriptor);
293293
descriptor.BeforeRequest();
294-
return DoRequestAsync<GetClusterSettingsRequestDescriptor, GetClusterSettingsResponse, GetClusterSettingsRequestParameters>(descriptor);
294+
return DoRequestAsync<GetClusterSettingsRequestDescriptor, GetClusterSettingsResponse, GetClusterSettingsRequestParameters>(descriptor, cancellationToken);
295295
}
296296

297297
/// <summary>
@@ -377,7 +377,7 @@ public virtual Task<HealthResponse> HealthAsync(CancellationToken cancellationTo
377377
{
378378
var descriptor = new HealthRequestDescriptor();
379379
descriptor.BeforeRequest();
380-
return DoRequestAsync<HealthRequestDescriptor, HealthResponse, HealthRequestParameters>(descriptor);
380+
return DoRequestAsync<HealthRequestDescriptor, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken);
381381
}
382382

383383
/// <summary>
@@ -387,7 +387,7 @@ public virtual Task<HealthResponse> HealthAsync(CancellationToken cancellationTo
387387
public virtual Task<HealthResponse> HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default)
388388
{
389389
descriptor.BeforeRequest();
390-
return DoRequestAsync<HealthRequestDescriptor, HealthResponse, HealthRequestParameters>(descriptor);
390+
return DoRequestAsync<HealthRequestDescriptor, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken);
391391
}
392392

393393
/// <summary>
@@ -399,7 +399,7 @@ public virtual Task<HealthResponse> HealthAsync(Action<HealthRequestDescriptor>
399399
var descriptor = new HealthRequestDescriptor();
400400
configureRequest?.Invoke(descriptor);
401401
descriptor.BeforeRequest();
402-
return DoRequestAsync<HealthRequestDescriptor, HealthResponse, HealthRequestParameters>(descriptor);
402+
return DoRequestAsync<HealthRequestDescriptor, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken);
403403
}
404404

405405
/// <summary>
@@ -409,7 +409,7 @@ public virtual Task<HealthResponse> HealthAsync(Action<HealthRequestDescriptor>
409409
public virtual Task<HealthResponse> HealthAsync<TDocument>(HealthRequestDescriptor<TDocument> descriptor, CancellationToken cancellationToken = default)
410410
{
411411
descriptor.BeforeRequest();
412-
return DoRequestAsync<HealthRequestDescriptor<TDocument>, HealthResponse, HealthRequestParameters>(descriptor);
412+
return DoRequestAsync<HealthRequestDescriptor<TDocument>, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken);
413413
}
414414

415415
/// <summary>
@@ -421,7 +421,7 @@ public virtual Task<HealthResponse> HealthAsync<TDocument>(Action<HealthRequestD
421421
var descriptor = new HealthRequestDescriptor<TDocument>();
422422
configureRequest?.Invoke(descriptor);
423423
descriptor.BeforeRequest();
424-
return DoRequestAsync<HealthRequestDescriptor<TDocument>, HealthResponse, HealthRequestParameters>(descriptor);
424+
return DoRequestAsync<HealthRequestDescriptor<TDocument>, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken);
425425
}
426426

427427
/// <summary>
@@ -485,7 +485,7 @@ public virtual Task<PendingTasksResponse> PendingTasksAsync(CancellationToken ca
485485
{
486486
var descriptor = new PendingTasksRequestDescriptor();
487487
descriptor.BeforeRequest();
488-
return DoRequestAsync<PendingTasksRequestDescriptor, PendingTasksResponse, PendingTasksRequestParameters>(descriptor);
488+
return DoRequestAsync<PendingTasksRequestDescriptor, PendingTasksResponse, PendingTasksRequestParameters>(descriptor, cancellationToken);
489489
}
490490

491491
/// <summary>
@@ -495,7 +495,7 @@ public virtual Task<PendingTasksResponse> PendingTasksAsync(CancellationToken ca
495495
public virtual Task<PendingTasksResponse> PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default)
496496
{
497497
descriptor.BeforeRequest();
498-
return DoRequestAsync<PendingTasksRequestDescriptor, PendingTasksResponse, PendingTasksRequestParameters>(descriptor);
498+
return DoRequestAsync<PendingTasksRequestDescriptor, PendingTasksResponse, PendingTasksRequestParameters>(descriptor, cancellationToken);
499499
}
500500

501501
/// <summary>
@@ -507,6 +507,6 @@ public virtual Task<PendingTasksResponse> PendingTasksAsync(Action<PendingTasksR
507507
var descriptor = new PendingTasksRequestDescriptor();
508508
configureRequest?.Invoke(descriptor);
509509
descriptor.BeforeRequest();
510-
return DoRequestAsync<PendingTasksRequestDescriptor, PendingTasksResponse, PendingTasksRequestParameters>(descriptor);
510+
return DoRequestAsync<PendingTasksRequestDescriptor, PendingTasksResponse, PendingTasksRequestParameters>(descriptor, cancellationToken);
511511
}
512512
}

src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public virtual Task<ListDanglingIndicesResponse> ListDanglingIndicesAsync(Cancel
9797
{
9898
var descriptor = new ListDanglingIndicesRequestDescriptor();
9999
descriptor.BeforeRequest();
100-
return DoRequestAsync<ListDanglingIndicesRequestDescriptor, ListDanglingIndicesResponse, ListDanglingIndicesRequestParameters>(descriptor);
100+
return DoRequestAsync<ListDanglingIndicesRequestDescriptor, ListDanglingIndicesResponse, ListDanglingIndicesRequestParameters>(descriptor, cancellationToken);
101101
}
102102

103103
/// <summary>
@@ -107,7 +107,7 @@ public virtual Task<ListDanglingIndicesResponse> ListDanglingIndicesAsync(Cancel
107107
public virtual Task<ListDanglingIndicesResponse> ListDanglingIndicesAsync(ListDanglingIndicesRequestDescriptor descriptor, CancellationToken cancellationToken = default)
108108
{
109109
descriptor.BeforeRequest();
110-
return DoRequestAsync<ListDanglingIndicesRequestDescriptor, ListDanglingIndicesResponse, ListDanglingIndicesRequestParameters>(descriptor);
110+
return DoRequestAsync<ListDanglingIndicesRequestDescriptor, ListDanglingIndicesResponse, ListDanglingIndicesRequestParameters>(descriptor, cancellationToken);
111111
}
112112

113113
/// <summary>
@@ -119,6 +119,6 @@ public virtual Task<ListDanglingIndicesResponse> ListDanglingIndicesAsync(Action
119119
var descriptor = new ListDanglingIndicesRequestDescriptor();
120120
configureRequest?.Invoke(descriptor);
121121
descriptor.BeforeRequest();
122-
return DoRequestAsync<ListDanglingIndicesRequestDescriptor, ListDanglingIndicesResponse, ListDanglingIndicesRequestParameters>(descriptor);
122+
return DoRequestAsync<ListDanglingIndicesRequestDescriptor, ListDanglingIndicesResponse, ListDanglingIndicesRequestParameters>(descriptor, cancellationToken);
123123
}
124124
}

0 commit comments

Comments
 (0)