Method ReadAsync
- Namespace
- MailFathom.Infrastructure.Persistence.Policies
- Assembly
- MailFathom.Infrastructure.dll
ReadAsync(Guid?, CancellationToken)
Reads the policy one scope holds.
Task<SettingsPolicyDocument?> ReadAsync(Guid? organizationId, CancellationToken cancellationToken)
Parameters
organizationIdGuid?The organization, or null for the deployment.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<SettingsPolicyDocument>
The policy, stating nothing at UnwrittenVersion where the scope stores none; or null when the deployment holds no such organization.
Exceptions
- SettingsPolicyUnreadableException
Thrown when the row holds a document past MaximumOctets, which is refused rather than read.