Show / Hide Table of Contents

Class IdentityRoleManager

Inheritance
System.Object
IdentityRoleManager
Implements
IDomainService
ITransientDependency
Namespace: Volo.Abp.Identity
Assembly: Volo.Abp.Identity.Domain.dll
Syntax
public class IdentityRoleManager : RoleManager<IdentityRole>, IDomainService, ITransientDependency

Constructors

IdentityRoleManager(IdentityRoleStore, IEnumerable<IRoleValidator<IdentityRole>>, ILookupNormalizer, IdentityErrorDescriber, ILogger<IdentityRoleManager>, IStringLocalizer<IdentityResource>, ICancellationTokenProvider)

Declaration
public IdentityRoleManager(IdentityRoleStore store, IEnumerable<IRoleValidator<IdentityRole>> roleValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, ILogger<IdentityRoleManager> logger, IStringLocalizer<IdentityResource> localizer, ICancellationTokenProvider cancellationTokenProvider)
Parameters
Type Name Description
IdentityRoleStore store
IEnumerable<IRoleValidator<IdentityRole>> roleValidators
ILookupNormalizer keyNormalizer
IdentityErrorDescriber errors
ILogger<IdentityRoleManager> logger
IStringLocalizer<IdentityResource> localizer
ICancellationTokenProvider cancellationTokenProvider

Properties

CancellationToken

Declaration
protected override CancellationToken CancellationToken { get; }
Property Value
Type Description
CancellationToken

CancellationTokenProvider

Declaration
protected ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
Type Description
ICancellationTokenProvider

Localizer

Declaration
protected IStringLocalizer<IdentityResource> Localizer { get; }
Property Value
Type Description
IStringLocalizer<IdentityResource>

Methods

DeleteAsync(IdentityRole)

Declaration
public override Task<IdentityResult> DeleteAsync(IdentityRole role)
Parameters
Type Name Description
IdentityRole role
Returns
Type Description
Task<IdentityResult>

GetByIdAsync(Guid)

Declaration
public virtual Task<IdentityRole> GetByIdAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<IdentityRole>

SetRoleNameAsync(IdentityRole, String)

Declaration
public override Task<IdentityResult> SetRoleNameAsync(IdentityRole role, string name)
Parameters
Type Name Description
IdentityRole role
System.String name
Returns
Type Description
Task<IdentityResult>

Implements

IDomainService
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft