src/Folke.Identity.Elm/RoleStore.cs
/// <summary>
///     Find a role by normalized name
/// </summary>
/// <param name="normalizedName"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Find a role by normalized name
Find a role by normalized name
public virtual async Task<TRole> FindByNameAsync(string normalizedName, CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            ThrowIfDisposed();
            return await Context.SelectAllFrom<TRole>().Where(r => r.NormalizedName == normalizedName).SingleOrDefaultAsync();
        }
public virtual async Task < TRole > FindByNameAsync ( string normalizedName , CancellationToken cancellationToken = default ( CancellationToken ) ) { cancellationToken . ThrowIfCancellationRequested ( ) ; ThrowIfDisposed ( ) ; return await Context . SelectAllFrom < TRole > ( ) . Where ( r => r . NormalizedName == normalizedName ) . SingleOrDefaultAsync ( ) ; }
Find a role by normalized name
Find a role by normalized name
None
normalizedName
string
None
cancellationToken
CancellationToken
None