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