Open
Description
The line
if (roleType != null) {
...
} else {
services.TryAddScoped(
typeof(IUsersOnlyTable<,,,,>).MakeGenericType(userType, keyType, userClaimType, userLoginType, userTokenType),
typeof(UsersTable<,,,,,>).MakeGenericType(userType, keyType, userClaimType, roleType, userLoginType, userTokenType)
will throw an error if roleType
is null because roleType
is used as an argument in the second call to the MakeGenericType
method
I believe the second call should use the userRoleType
as the 4th argument, not rollType
typeof(UsersTable<,,,,,>).MakeGenericType(userType, keyType, userClaimType, userRoleType, userLoginType, userTokenType)
Metadata
Metadata
Assignees
Labels
No labels