Table of Contents

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

organizationId Guid?

The organization, or null for the deployment.

cancellationToken CancellationToken

Cancels 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.