Table of Contents

Class SystemRoleRegistry

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Maps app/global role names to system scopes. Role names are matched case-insensitively.

public class SystemRoleRegistry : ISystemRoleRegistry
Inheritance
SystemRoleRegistry
Implements
Inherited Members

Properties

All

public IReadOnlyDictionary<string, string[]> All { get; }

Property Value

IReadOnlyDictionary<string, string[]>

Methods

GetScopesForRoles(IEnumerable<string>)

Returns the distinct system scopes granted by the given role names.

public IReadOnlyList<string> GetScopesForRoles(IEnumerable<string> roleNames)

Parameters

roleNames IEnumerable<string>

Returns

IReadOnlyList<string>

Map(string, params string[])

public void Map(string roleName, params string[] systemScopes)

Parameters

roleName string
systemScopes string[]