Method Judge
- Namespace
- MailFathom.Infrastructure.Persistence.Policies
- Assembly
- MailFathom.Infrastructure.dll
Judge(IReadOnlyList<GovernedUserRecord>)
Judges the records one write reaches, each under the policies the write would leave it governed by.
IReadOnlyList<UserRecordPolicyJudgement> Judge(IReadOnlyList<GovernedUserRecord> records)
Parameters
recordsIReadOnlyList<GovernedUserRecord>The records, each with the policies governing it now and the ones that would govern it.
Returns
- IReadOnlyList<UserRecordPolicyJudgement>
One judgement per record, in the order given: the endpoint switches to project onto the user's row, and what refuses the write.
Remarks
Asked once for a whole write rather than once per record, so a policy a thousand records share is read as a policy once.
Exceptions
- ArgumentNullException
Thrown when
recordsis null.