Constructor UserRecordPolicyJudgement
- Namespace
- MailFathom.Infrastructure.Persistence.Policies
- Assembly
- MailFathom.Infrastructure.dll
UserRecordPolicyJudgement(UserEndpointAccess?, IReadOnlyList<string>)
What judging one record under the policies a write would leave it governed by answered.
public UserRecordPolicyJudgement(UserEndpointAccess? EndpointAccess, IReadOnlyList<string> Refusals)
Parameters
EndpointAccessUserEndpointAccess?The switches the row is to carry: what the record resolves to under the candidate policies, or, where the record cannot be resolved, the switches its row holds with every one a readable policy forces written over them. null where the record cannot be resolved and no readable policy forces either, so the row is left as it stands.
RefusalsIReadOnlyList<string>One sentence per reason the write would leave this record one the deployment could not serve, empty where it would not.
Remarks
A record that was already unservable before the write refuses nothing: the write did not break it, and refusing every policy over a row somebody has yet to correct would leave the policy unwritable for a reason its author cannot act on.