View Source
Class MemberRoleStore
A custom user store that uses Umbraco member data
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MemberRoleStore : IQueryableRoleStore<UmbracoIdentityRole>
Constructors
View Source
MemberRoleStore(IMemberGroupService, IdentityErrorDescriber)
Declaration
public MemberRoleStore(IMemberGroupService memberGroupService, IdentityErrorDescriber errorDescriber)
Parameters
Type |
Name |
Description |
IMemberGroupService |
memberGroupService |
|
IdentityErrorDescriber |
errorDescriber |
|
Properties
View Source
ErrorDescriber
Gets or sets the for any error that occurred with the current operation.
Declaration
public IdentityErrorDescriber ErrorDescriber { get; set; }
Property Value
Type |
Description |
IdentityErrorDescriber |
|
View Source
Roles
Declaration
public IQueryable<UmbracoIdentityRole> Roles { get; }
Property Value
Methods
View Source
CreateAsync(UmbracoIdentityRole, CancellationToken)
Declaration
public Task<IdentityResult> CreateAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
Parameters
Returns
Type |
Description |
Task<IdentityResult> |
|
View Source
DeleteAsync(UmbracoIdentityRole, CancellationToken)
Declaration
public Task<IdentityResult> DeleteAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
Parameters
Returns
Type |
Description |
Task<IdentityResult> |
|
View Source
Dispose()
Declaration
View Source
FindByIdAsync(String, CancellationToken)
Declaration
public Task<UmbracoIdentityRole> FindByIdAsync(string roleId, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
roleId |
|
CancellationToken |
cancellationToken |
|
Returns
View Source
FindByNameAsync(String, CancellationToken)
Declaration
public Task<UmbracoIdentityRole> FindByNameAsync(string name, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
CancellationToken |
cancellationToken |
|
Returns
View Source
GetNormalizedRoleNameAsync(UmbracoIdentityRole, CancellationToken)
Declaration
public Task<string> GetNormalizedRoleNameAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
Parameters
Returns
Type |
Description |
Task<System.String> |
|
View Source
GetRoleIdAsync(UmbracoIdentityRole, CancellationToken)
Declaration
public Task<string> GetRoleIdAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
Parameters
Returns
Type |
Description |
Task<System.String> |
|
View Source
GetRoleNameAsync(UmbracoIdentityRole, CancellationToken)
Declaration
public Task<string> GetRoleNameAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
Parameters
Returns
Type |
Description |
Task<System.String> |
|
View Source
SetNormalizedRoleNameAsync(UmbracoIdentityRole, String, CancellationToken)
Declaration
public Task SetNormalizedRoleNameAsync(UmbracoIdentityRole role, string normalizedName, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
UmbracoIdentityRole |
role |
|
System.String |
normalizedName |
|
CancellationToken |
cancellationToken |
|
Returns
View Source
SetRoleNameAsync(UmbracoIdentityRole, String, CancellationToken)
Declaration
public Task SetRoleNameAsync(UmbracoIdentityRole role, string roleName, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
UmbracoIdentityRole |
role |
|
System.String |
roleName |
|
CancellationToken |
cancellationToken |
|
Returns
View Source
ThrowIfDisposed()
Throws if this class has been disposed.
Declaration
protected void ThrowIfDisposed()
View Source
UpdateAsync(UmbracoIdentityRole, CancellationToken)
Declaration
public Task<IdentityResult> UpdateAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
Parameters
Returns
Type |
Description |
Task<IdentityResult> |
|