Table of Contents

Method BeginGuardedOperation

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

BeginGuardedOperation(SensitiveContentEgressPoint, CancellationToken)

Opens the report of one guarded operation, which is what a caller actually waits on.

ISensitiveContentGuardScope BeginGuardedOperation(SensitiveContentEgressPoint egressPoint, CancellationToken cancellationToken)

Parameters

egressPoint SensitiveContentEgressPoint

Where the texts this operation guards are going.

cancellationToken CancellationToken

The caller's token, read as the scope is disposed to tell a shutdown from an operation that broke.

Returns

ISensitiveContentGuardScope

The scope, which the caller must dispose exactly once and inside which the scanning happens.

Remarks

The instruments above answer over every guarded text of a deployment; this answers what one operation cost the caller in front of it. Both are needed and neither substitutes for the other: a percentile over values says a scan is quick while a read that ran fifty of them was not.