Table of Contents

Method Of

Namespace
MailFathom.Domain.Access
Assembly
MailFathom.Domain.dll

Of(IEnumerable<(MailFathomPermission Permission, AssignmentScope Scope)>)

Builds the union of what several assignments give.

public static ScopedGrant Of(IEnumerable<(MailFathomPermission Permission, AssignmentScope Scope)> held)

Parameters

held IEnumerable<(MailFathomPermission Permission, AssignmentScope Scope)>

Each permission an assignment gives, paired with the scope that assignment names, in any order and with any repetition.

Returns

ScopedGrant

The grant holding each permission at every scope it was paired with.

Remarks

An unspecified permission is dropped rather than held, because the struct default names no capability.

Exceptions

ArgumentNullException

Thrown when held or a scope in it is null.