Table of Contents

Method RunsForAnyAccountAsync

Namespace
MailFathom.Application.SensitiveContent
Assembly
MailFathom.Application.dll

RunsForAnyAccountAsync(SensitiveContentScannerKind, CancellationToken)

Reports whether one scanner runs over any mail on this deployment.

Task<bool> RunsForAnyAccountAsync(SensitiveContentScannerKind scanner, CancellationToken cancellationToken)

Parameters

scanner SensitiveContentScannerKind

The scanner to ask about.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<bool>

true when at least one account's posture runs it.

Remarks

Asked by what answers for a scanner's own dependency rather than by anything that scans: the readiness probe of the analyzer the personal-data scanner reaches. A deployment that stood that analyzer up and scans no mail with it is not unready while the analyzer is silent, and one where a single account switched it on is.