Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberRoleStore

    A custom user store that uses Umbraco member data

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Security
    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
    Type Description
    IQueryable<UmbracoIdentityRole>

    Methods

    View Source

    CreateAsync(UmbracoIdentityRole, CancellationToken)

    Declaration
    public Task<IdentityResult> CreateAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    UmbracoIdentityRole role
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IdentityResult>
    View Source

    DeleteAsync(UmbracoIdentityRole, CancellationToken)

    Declaration
    public Task<IdentityResult> DeleteAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    UmbracoIdentityRole role
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IdentityResult>
    View Source

    Dispose()

    Dispose the store

    Declaration
    public void Dispose()
    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
    Type Description
    Task<UmbracoIdentityRole>
    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
    Type Description
    Task<UmbracoIdentityRole>
    View Source

    GetNormalizedRoleNameAsync(UmbracoIdentityRole, CancellationToken)

    Declaration
    public Task<string> GetNormalizedRoleNameAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    UmbracoIdentityRole role
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<System.String>
    View Source

    GetRoleIdAsync(UmbracoIdentityRole, CancellationToken)

    Declaration
    public Task<string> GetRoleIdAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    UmbracoIdentityRole role
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<System.String>
    View Source

    GetRoleNameAsync(UmbracoIdentityRole, CancellationToken)

    Declaration
    public Task<string> GetRoleNameAsync(UmbracoIdentityRole role, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    UmbracoIdentityRole role
    CancellationToken cancellationToken
    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
    Type Description
    Task
    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
    Type Description
    Task
    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
    Type Name Description
    UmbracoIdentityRole role
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IdentityResult>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MemberRoleStore(IMemberGroupService, IdentityErrorDescriber)
    • Properties
      • ErrorDescriber
      • Roles
    • Methods
      • CreateAsync(UmbracoIdentityRole, CancellationToken)
      • DeleteAsync(UmbracoIdentityRole, CancellationToken)
      • Dispose()
      • FindByIdAsync(String, CancellationToken)
      • FindByNameAsync(String, CancellationToken)
      • GetNormalizedRoleNameAsync(UmbracoIdentityRole, CancellationToken)
      • GetRoleIdAsync(UmbracoIdentityRole, CancellationToken)
      • GetRoleNameAsync(UmbracoIdentityRole, CancellationToken)
      • SetNormalizedRoleNameAsync(UmbracoIdentityRole, String, CancellationToken)
      • SetRoleNameAsync(UmbracoIdentityRole, String, CancellationToken)
      • ThrowIfDisposed()
      • UpdateAsync(UmbracoIdentityRole, CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX