Table of Contents

Method IsActiveAsync

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

IsActiveAsync(CancellationToken)

Reads whether anything is scanned for on this flow.

public Task<bool> IsActiveAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the read a flow acting for nothing makes.

Returns

Task<bool>

true when the mail in scope, or anything at all where nothing is in scope, is scanned.

Remarks

What this flow is acting for where it has said, and anything at all where it has not. Read by a consumer deciding whether work only a scan makes necessary is worth doing — never as permission to hand text on unguarded, which is what calling the guard already does when nothing scans the mail in scope. Inside a use case this is that one answer, so a reader serving a mailbox nothing scans does exactly what it did before this feature existed however much the deployment scans elsewhere.