Inheritance
System.Object
RoleStore<TRole>
Namespace:InfinniPlatform.Auth.DocumentStorage
Assembly:InfinniPlatform.Auth.dll
public class RoleStore<TRole> : IRoleStore<TRole> where TRole : AppUserRole
Type Parameters
Constructors
|
Improve this Doc
View Source
Declaration
public RoleStore(ISystemDocumentStorageFactory documentStorageFactory)
Parameters
Methods
|
Improve this Doc
View Source
Declaration
public virtual Task<IdentityResult> CreateAsync(TRole role, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<IdentityResult> |
|
|
Improve this Doc
View Source
Declaration
public virtual Task<IdentityResult> DeleteAsync(TRole role, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<IdentityResult> |
|
|
Improve this Doc
View Source
Declaration
public virtual void Dispose()
|
Improve this Doc
View Source
Declaration
public virtual Task<TRole> FindByIdAsync(string roleId, CancellationToken token)
Parameters
Type |
Name |
Description |
System.String |
roleId |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<TRole> |
|
|
Improve this Doc
View Source
Declaration
public virtual Task<TRole> FindByNameAsync(string normalizedName, CancellationToken token)
Parameters
Type |
Name |
Description |
System.String |
normalizedName |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<TRole> |
|
|
Improve this Doc
View Source
Declaration
public virtual Task<string> GetNormalizedRoleNameAsync(TRole role, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<System.String> |
|
|
Improve this Doc
View Source
Declaration
public virtual Task<string> GetRoleIdAsync(TRole role, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<System.String> |
|
|
Improve this Doc
View Source
Declaration
public virtual Task<string> GetRoleNameAsync(TRole role, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<System.String> |
|
|
Improve this Doc
View Source
Declaration
public virtual Task SetNormalizedRoleNameAsync(TRole role, string normalizedName, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
System.String |
normalizedName |
|
CancellationToken |
token |
|
Returns
|
Improve this Doc
View Source
Declaration
public virtual Task SetRoleNameAsync(TRole role, string roleName, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
System.String |
roleName |
|
CancellationToken |
token |
|
Returns
|
Improve this Doc
View Source
Declaration
public virtual Task<IdentityResult> UpdateAsync(TRole role, CancellationToken token)
Parameters
Type |
Name |
Description |
TRole |
role |
|
CancellationToken |
token |
|
Returns
Type |
Description |
Task<IdentityResult> |
|
Extension Methods