Skip to content

Commit a490d81

Browse files
authored
Merge pull request #382 from DiscoPYF/missingConfigureAwait
Apply ConfigureAwait(false) to inner method calls of bulk operations API
2 parents abff3f1 + a8ce128 commit a490d81

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

arangodb-net-standard/BulkOperationsApi/BulkOperationsApiClient.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ public virtual async Task<ImportDocumentsResponse> PostImportDocumentArraysAsync
8585
var options = new ApiClientSerializationOptions(true, true);
8686
foreach (var valueArr in body.ValueArrays)
8787
{
88-
sb.AppendLine(GetContentString(valueArr, options) );
88+
sb.AppendLine(GetContentString(valueArr, options));
8989
}
90-
return await PostImportDocumentArraysAsync(query, sb.ToString());
90+
return await PostImportDocumentArraysAsync(query, sb.ToString())
91+
.ConfigureAwait(false);
9192
}
9293

9394
/// <summary>
@@ -155,7 +156,7 @@ public virtual async Task<ImportDocumentsResponse> PostImportDocumentObjectsAsyn
155156
{
156157
throw new ArgumentException("body is required", nameof(body));
157158
}
158-
159+
159160
if (body.Documents == null || body.Documents.Count() < 1)
160161
{
161162
throw new ArgumentException("Documents is required", nameof(body.Documents));
@@ -177,7 +178,8 @@ public virtual async Task<ImportDocumentsResponse> PostImportDocumentObjectsAsyn
177178
//body should be one array of JSON objects
178179
sb.Append(GetContentString(body.Documents, options));
179180
}
180-
return await PostImportDocumentObjectsAsync(query, sb.ToString());
181+
return await PostImportDocumentObjectsAsync(query, sb.ToString())
182+
.ConfigureAwait(false);
181183
}
182184

183185
/// <summary>

0 commit comments

Comments
 (0)