@@ -85,9 +85,10 @@ public virtual async Task<ImportDocumentsResponse> PostImportDocumentArraysAsync
85
85
var options = new ApiClientSerializationOptions ( true , true ) ;
86
86
foreach ( var valueArr in body . ValueArrays )
87
87
{
88
- sb . AppendLine ( GetContentString ( valueArr , options ) ) ;
88
+ sb . AppendLine ( GetContentString ( valueArr , options ) ) ;
89
89
}
90
- return await PostImportDocumentArraysAsync ( query , sb . ToString ( ) ) ;
90
+ return await PostImportDocumentArraysAsync ( query , sb . ToString ( ) )
91
+ . ConfigureAwait ( false ) ;
91
92
}
92
93
93
94
/// <summary>
@@ -155,7 +156,7 @@ public virtual async Task<ImportDocumentsResponse> PostImportDocumentObjectsAsyn
155
156
{
156
157
throw new ArgumentException ( "body is required" , nameof ( body ) ) ;
157
158
}
158
-
159
+
159
160
if ( body . Documents == null || body . Documents . Count ( ) < 1 )
160
161
{
161
162
throw new ArgumentException ( "Documents is required" , nameof ( body . Documents ) ) ;
@@ -177,7 +178,8 @@ public virtual async Task<ImportDocumentsResponse> PostImportDocumentObjectsAsyn
177
178
//body should be one array of JSON objects
178
179
sb . Append ( GetContentString ( body . Documents , options ) ) ;
179
180
}
180
- return await PostImportDocumentObjectsAsync ( query , sb . ToString ( ) ) ;
181
+ return await PostImportDocumentObjectsAsync ( query , sb . ToString ( ) )
182
+ . ConfigureAwait ( false ) ;
181
183
}
182
184
183
185
/// <summary>
0 commit comments