2 writes to RoleType
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (2)
47RoleType = role; 197RoleType = typeof(TRole);
12 references to RoleType
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
25AddStores(builder.Services, builder.UserType, builder.RoleType, typeof(TContext));
Microsoft.Extensions.Identity.Core (11)
IdentityBuilder.cs (11)
200Services.AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(UserClaimsPrincipalFactory<,>).MakeGenericType(UserType, RoleType)); 205/// Adds an <see cref="IRoleValidator{TRole}"/> for the <see cref="RoleType"/>. 212if (RoleType == null) 216return AddScoped(typeof(IRoleValidator<>).MakeGenericType(RoleType), typeof(TRole)); 236/// Adds a <see cref="IRoleStore{TRole}"/> for the <see cref="RoleType"/>. 243if (RoleType == null) 247return AddScoped(typeof(IRoleStore<>).MakeGenericType(RoleType), typeof(TStore)); 251/// Adds a <see cref="RoleManager{TRole}"/> for the <see cref="RoleType"/>. 258if (RoleType == null) 262var managerType = typeof(RoleManager<>).MakeGenericType(RoleType); 266throw new InvalidOperationException(Resources.FormatInvalidManagerType(customType.Name, "RoleManager", RoleType.Name));