perf: add ConfigureAwait(false) to all async calls in library projects
Add ConfigureAwait(false) to all await expressions in Application and Infrastructure projects (111 files). This follows .NET best practices for library code to avoid potential deadlocks when consumed from synchronization contexts (legacy, unit test runners). Also fix 4 test assertions that check SaveChangesAsync — update to SaveChangesWithRetryAsync to match the handler changes from Fix 4.
This commit is contained in:
1 parent
1635d005cd
commit
45c6ce82eb
115 files changed
+270
-270
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ public class GetEffectiveAgentConfigQueryHandler
|
||||
public async Task<ServiceResult<Dictionary<string, string>>> Handle(
|
||||
GetEffectiveAgentConfigQuery request, CancellationToken ct)
|
||||
{
|
||||
var appSettings = await _db.AppSettings.ToListAsync(ct);
|
||||
var appSettings = await _db.AppSettings.ToListAsync(ct).ConfigureAwait(false);
|
||||
var config = new Dictionary<string, string>(StringComparer.Ordinal);
|
||||
|
||||
foreach (var s in appSettings)
|
||||
|
||||
Reference in new issue
Block a user