Table of Contents

Class UserRoleStore

Namespace
Tlabs.Identity.Intern
Assembly
Tlabs.SrvBase.dll

User roles store

public sealed class UserRoleStore : IQueryableRoleStore<Role>, IRoleStore<Role>, IDisposable
Inheritance
UserRoleStore
Implements
Inherited Members
Extension Methods

Constructors

UserRoleStore(IRepo<Role>)

Ctor from Repo

public UserRoleStore(IRepo<Role> repo)

Parameters

repo IRepo<Role>

Role repository

Fields

repo

Role repository

public IRepo<Role> repo

Field Value

IRepo<Role>

Properties

Roles

public IQueryable<Role> Roles { get; }

Property Value

IQueryable<Role>

Methods

CreateAsync(Role, CancellationToken)

public Task<IdentityResult> CreateAsync(Role role, CancellationToken cancellationToken)

Parameters

role Role
cancellationToken CancellationToken

Returns

Task<IdentityResult>

DeleteAsync(Role, CancellationToken)

public Task<IdentityResult> DeleteAsync(Role role, CancellationToken cancellationToken)

Parameters

role Role
cancellationToken CancellationToken

Returns

Task<IdentityResult>

Dispose()

public void Dispose()

FindByIdAsync(string, CancellationToken)

public Task<Role?> FindByIdAsync(string roleId, CancellationToken cancellationToken)

Parameters

roleId string
cancellationToken CancellationToken

Returns

Task<Role>

FindByNameAsync(string, CancellationToken)

public Task<Role?> FindByNameAsync(string normalizedRoleName, CancellationToken cancellationToken)

Parameters

normalizedRoleName string
cancellationToken CancellationToken

Returns

Task<Role>

GetNormalizedRoleNameAsync(Role, CancellationToken)

public Task<string?> GetNormalizedRoleNameAsync(Role role, CancellationToken cancellationToken)

Parameters

role Role
cancellationToken CancellationToken

Returns

Task<string>

GetRoleIdAsync(Role, CancellationToken)

public Task<string> GetRoleIdAsync(Role role, CancellationToken cancellationToken)

Parameters

role Role
cancellationToken CancellationToken

Returns

Task<string>

GetRoleNameAsync(Role, CancellationToken)

public Task<string?> GetRoleNameAsync(Role role, CancellationToken cancellationToken)

Parameters

role Role
cancellationToken CancellationToken

Returns

Task<string>

SetNormalizedRoleNameAsync(Role, string?, CancellationToken)

public Task SetNormalizedRoleNameAsync(Role role, string? normalizedName, CancellationToken cancellationToken)

Parameters

role Role
normalizedName string
cancellationToken CancellationToken

Returns

Task

SetRoleNameAsync(Role, string?, CancellationToken)

public Task SetRoleNameAsync(Role role, string? roleName, CancellationToken cancellationToken)

Parameters

role Role
roleName string
cancellationToken CancellationToken

Returns

Task

UpdateAsync(Role, CancellationToken)

public Task<IdentityResult> UpdateAsync(Role role, CancellationToken cancellationToken)

Parameters

role Role
cancellationToken CancellationToken

Returns

Task<IdentityResult>