Show / Hide Table of Contents

Class IdentityRoleStore

Inheritance
object
IdentityRoleStore
Implements
IRoleStore<IdentityRole>
IRoleClaimStore<IdentityRole>
IRoleStore<IdentityRole>
IDisposable
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Identity
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
Type Name Description
IIdentityRoleRepository roleRepository
ILogger<IdentityRoleStore> logger
IGuidGenerator guidGenerator
IdentityErrorDescriber describer

Properties

AutoSaveChanges

Declaration
public bool AutoSaveChanges { get; set; }
Property Value
Type Description
bool

ErrorDescriber

Declaration
public IdentityErrorDescriber ErrorDescriber { get; set; }
Property Value
Type Description
IdentityErrorDescriber

GuidGenerator

Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Type Description
IGuidGenerator

Logger

Declaration
protected ILogger<IdentityRoleStore> Logger { get; }
Property Value
Type Description
ILogger<IdentityRoleStore>

RoleRepository

Declaration
protected IIdentityRoleRepository RoleRepository { get; }
Property Value
Type Description
IIdentityRoleRepository

Methods

AddClaimAsync(IdentityRole, Claim, CancellationToken)

Declaration
public virtual Task AddClaimAsync(IdentityRole role, Claim claim, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
Claim claim
CancellationToken cancellationToken
Returns
Type Description
Task

CreateAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<IdentityResult> CreateAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<IdentityResult>

DeleteAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<IdentityResult> DeleteAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<IdentityResult>

Dispose()

Declaration
public virtual void Dispose()

FindByIdAsync(string, CancellationToken)

Declaration
public virtual Task<IdentityRole> FindByIdAsync(string id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string id
CancellationToken cancellationToken
Returns
Type Description
Task<IdentityRole>

FindByNameAsync(string, CancellationToken)

Declaration
public virtual Task<IdentityRole> FindByNameAsync(string normalizedName, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string normalizedName
CancellationToken cancellationToken
Returns
Type Description
Task<IdentityRole>

GetClaimsAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<IList<Claim>> GetClaimsAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<IList<Claim>>

GetNormalizedRoleNameAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<string> GetNormalizedRoleNameAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<string>

GetRoleIdAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<string> GetRoleIdAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<string>

GetRoleNameAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<string> GetRoleNameAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<string>

RemoveClaimAsync(IdentityRole, Claim, CancellationToken)

Declaration
public virtual Task RemoveClaimAsync(IdentityRole role, Claim claim, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
Claim claim
CancellationToken cancellationToken
Returns
Type Description
Task

SetNormalizedRoleNameAsync(IdentityRole, string, CancellationToken)

Declaration
public virtual Task SetNormalizedRoleNameAsync(IdentityRole role, string normalizedName, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
string normalizedName
CancellationToken cancellationToken
Returns
Type Description
Task

SetRoleNameAsync(IdentityRole, string, CancellationToken)

Declaration
public virtual Task SetRoleNameAsync(IdentityRole role, string roleName, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
string roleName
CancellationToken cancellationToken
Returns
Type Description
Task

UpdateAsync(IdentityRole, CancellationToken)

Declaration
public virtual Task<IdentityResult> UpdateAsync(IdentityRole role, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IdentityRole role
CancellationToken cancellationToken
Returns
Type Description
Task<IdentityResult>

Implements

IRoleStore<TRole>
IRoleClaimStore<TRole>
IRoleStore<TRole>
IDisposable
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform