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
@@ -15,7 +15,7 @@ public class AuthSignInService : IAuthSignInService
|
||||
|
||||
public async Task<SignInServiceResult> PasswordSignInAsync(AppUser user, string password, bool lockoutOnFailure)
|
||||
{
|
||||
var result = await _signInManager.PasswordSignInAsync(user, password, false, lockoutOnFailure);
|
||||
var result = await _signInManager.PasswordSignInAsync(user, password, false, lockoutOnFailure).ConfigureAwait(false);
|
||||
return result switch
|
||||
{
|
||||
{ Succeeded: true } => new SignInServiceResult(SignInResultType.Success),
|
||||
@@ -27,6 +27,6 @@ public class AuthSignInService : IAuthSignInService
|
||||
|
||||
public async Task SignOutAsync()
|
||||
{
|
||||
await _signInManager.SignOutAsync();
|
||||
await _signInManager.SignOutAsync().ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user