Class AssignmentScope
- Namespace
- MailFathom.Domain.Access
- Assembly
- MailFathom.Domain.dll
What a role assignment reaches: the whole deployment, one organization, or one user.
public sealed record AssignmentScope : IEquatable<AssignmentScope>
- Inheritance
-
AssignmentScope
- Implements
- Inherited Members
Remarks
A reference type rather than a struct, so that no default value can stand for a scope: the struct default would read as the deployment, which is the widest grant there is, and a value nobody chose must never be that one.
Properties
- Deployment
Gets the scope covering everything the deployment holds.
- Kind
Gets which of the three scopes this is.
Methods
- Organization(Guid)
Creates the scope covering one organization.
- User(UserId)
Creates the scope covering one user.