diff --git a/arangodb-net-standard/BulkOperationsApi/BulkOperationsApiClient.cs b/arangodb-net-standard/BulkOperationsApi/BulkOperationsApiClient.cs index 867ee71f..74a82907 100644 --- a/arangodb-net-standard/BulkOperationsApi/BulkOperationsApiClient.cs +++ b/arangodb-net-standard/BulkOperationsApi/BulkOperationsApiClient.cs @@ -85,9 +85,10 @@ public virtual async Task PostImportDocumentArraysAsync var options = new ApiClientSerializationOptions(true, true); foreach (var valueArr in body.ValueArrays) { - sb.AppendLine(GetContentString(valueArr, options) ); + sb.AppendLine(GetContentString(valueArr, options)); } - return await PostImportDocumentArraysAsync(query, sb.ToString()); + return await PostImportDocumentArraysAsync(query, sb.ToString()) + .ConfigureAwait(false); } /// @@ -155,7 +156,7 @@ public virtual async Task PostImportDocumentObjectsAsyn { throw new ArgumentException("body is required", nameof(body)); } - + if (body.Documents == null || body.Documents.Count() < 1) { throw new ArgumentException("Documents is required", nameof(body.Documents)); @@ -177,7 +178,8 @@ public virtual async Task PostImportDocumentObjectsAsyn //body should be one array of JSON objects sb.Append(GetContentString(body.Documents, options)); } - return await PostImportDocumentObjectsAsync(query, sb.ToString()); + return await PostImportDocumentObjectsAsync(query, sb.ToString()) + .ConfigureAwait(false); } ///