diff --git a/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/UserStore.cs b/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/UserStore.cs index acb74d28c3..20f8de152a 100644 --- a/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/UserStore.cs +++ b/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/UserStore.cs @@ -411,7 +411,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore join role in Roles on userRole.RoleId equals role.Id where userRole.UserId.Equals(userId) select role.Name; - return await query.ToListAsync(); + return await query.ToListAsync(cancellationToken); } ///