Class IdentityRoleStore
Inheritance
IdentityRoleStore
Assembly: Volo.Abp.Identity.Domain.dll
Syntax
public class IdentityRoleStore : IRoleStore<IdentityRole>, IRoleClaimStore<IdentityRole>, IRoleStore<IdentityRole>, IDisposable, ITransientDependency
Constructors
IdentityRoleStore(IIdentityRoleRepository, ILogger<IdentityRoleStore>, IGuidGenerator, IdentityErrorDescriber)
Declaration
public IdentityRoleStore(IIdentityRoleRepository roleRepository, ILogger<IdentityRoleStore> logger, IGuidGenerator guidGenerator, IdentityErrorDescriber describer = null)
Parameters
Properties
AutoSaveChanges
Declaration
public bool AutoSaveChanges { get; set; }
Property Value
ErrorDescriber
Declaration
public IdentityErrorDescriber ErrorDescriber { get; set; }
Property Value
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Logger
Declaration
protected ILogger<IdentityRoleStore> Logger { get; }
Property Value
RoleRepository
Declaration
protected IIdentityRoleRepository RoleRepository { get; }
Property Value
Methods
AddClaimAsync(IdentityRole, Claim, CancellationToken)
Declaration
public virtual Task AddClaimAsync(IdentityRole role, Claim claim, CancellationToken cancellationToken = default)
Parameters
Returns
CreateAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<IdentityResult> CreateAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
DeleteAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<IdentityResult> DeleteAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
Dispose()
Declaration
public virtual void Dispose()
FindByIdAsync(string, CancellationToken)
Declaration
public virtual Task<IdentityRole> FindByIdAsync(string id, CancellationToken cancellationToken = default)
Parameters
Returns
FindByNameAsync(string, CancellationToken)
Declaration
public virtual Task<IdentityRole> FindByNameAsync(string normalizedName, CancellationToken cancellationToken = default)
Parameters
Returns
GetClaimsAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<IList<Claim>> GetClaimsAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
GetNormalizedRoleNameAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<string> GetNormalizedRoleNameAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
GetRoleIdAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<string> GetRoleIdAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
GetRoleNameAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<string> GetRoleNameAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
RemoveClaimAsync(IdentityRole, Claim, CancellationToken)
Declaration
public virtual Task RemoveClaimAsync(IdentityRole role, Claim claim, CancellationToken cancellationToken = default)
Parameters
Returns
SetNormalizedRoleNameAsync(IdentityRole, string, CancellationToken)
Declaration
public virtual Task SetNormalizedRoleNameAsync(IdentityRole role, string normalizedName, CancellationToken cancellationToken = default)
Parameters
Returns
SetRoleNameAsync(IdentityRole, string, CancellationToken)
Declaration
public virtual Task SetRoleNameAsync(IdentityRole role, string roleName, CancellationToken cancellationToken = default)
Parameters
Returns
UpdateAsync(IdentityRole, CancellationToken)
Declaration
public virtual Task<IdentityResult> UpdateAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Returns
Implements
Extension Methods