@@ -18,32 +18,30 @@ public partial interface IIngestionClient
1818 /// Helper method to call ChunkedPushAsync and convert the response types.
1919 /// This simplifies SearchClient helpers that need to use IngestionClient.
2020 /// </summary>
21- Task < List < WatchResponse > > ChunkedPushAsync < T > (
21+ Task < List < WatchResponse > > ChunkedPushAsync (
2222 string indexName ,
23- IEnumerable < T > objects ,
23+ IEnumerable < object > objects ,
2424 Models . Ingestion . Action action ,
2525 bool waitForTasks = false ,
2626 int batchSize = 1000 ,
2727 string referenceIndexName = null ,
2828 RequestOptions options = null ,
2929 CancellationToken cancellationToken = default
30- )
31- where T : class ;
30+ ) ;
3231
3332 /// <summary>
34- /// Synchronous version of ChunkedPushWithSearchResponseAsync
33+ /// Synchronous version of ChunkedPushAsync
3534 /// </summary>
36- List < WatchResponse > ChunkedPush < T > (
35+ List < WatchResponse > ChunkedPush (
3736 string indexName ,
38- IEnumerable < T > objects ,
37+ IEnumerable < object > objects ,
3938 Models . Ingestion . Action action ,
4039 bool waitForTasks = false ,
4140 int batchSize = 1000 ,
4241 string referenceIndexName = null ,
4342 RequestOptions options = null ,
4443 CancellationToken cancellationToken = default
45- )
46- where T : class ;
44+ ) ;
4745}
4846
4947public partial class IngestionClient : IIngestionClient
@@ -62,17 +60,16 @@ public partial class IngestionClient : IIngestionClient
6260 /// <param name="options">Add extra http header or query parameters to Algolia.</param>
6361 /// <param name="cancellationToken">Cancellation token to cancel the request</param>
6462 /// <returns>List of WatchResponse objects from the push operations</returns>
65- public async Task < List < WatchResponse > > ChunkedPushAsync < T > (
63+ public async Task < List < WatchResponse > > ChunkedPushAsync (
6664 string indexName ,
67- IEnumerable < T > objects ,
65+ IEnumerable < object > objects ,
6866 Algolia . Search . Models . Ingestion . Action action ,
6967 bool waitForTasks = false ,
7068 int batchSize = 1000 ,
7169 string referenceIndexName = null ,
7270 RequestOptions options = null ,
7371 CancellationToken cancellationToken = default
7472 )
75- where T : class
7673 {
7774 var objectsList = objects . ToList ( ) ;
7875 var responses = new List < WatchResponse > ( ) ;
@@ -154,17 +151,16 @@ await RetryHelper.RetryUntil(
154151 /// <summary>
155152 /// Synchronous version of ChunkedPushAsync
156153 /// </summary>
157- public List < WatchResponse > ChunkedPush < T > (
154+ public List < WatchResponse > ChunkedPush (
158155 string indexName ,
159- IEnumerable < T > objects ,
156+ IEnumerable < object > objects ,
160157 Algolia . Search . Models . Ingestion . Action action ,
161158 bool waitForTasks = false ,
162159 int batchSize = 1000 ,
163160 string referenceIndexName = null ,
164161 RequestOptions options = null ,
165162 CancellationToken cancellationToken = default
166- )
167- where T : class =>
163+ ) =>
168164 AsyncHelper . RunSync ( ( ) =>
169165 ChunkedPushAsync (
170166 indexName ,
0 commit comments