Method BeginGuardedOperation
- Namespace
- MailFathom.Application.SensitiveContent.Egress
- Assembly
- MailFathom.Application.dll
BeginGuardedOperation(SensitiveContentEgressPoint, CancellationToken)
Opens the report of one guarded operation, and reports every text guarded inside it as part of it.
public SensitiveContentEgressGuard.EgressOperation BeginGuardedOperation(SensitiveContentEgressPoint egressPoint, CancellationToken cancellationToken)
Parameters
egressPointSensitiveContentEgressPointWhere the texts this operation guards are going.
cancellationTokenCancellationTokenThe caller's token, which separates an operation a shutdown stopped from one that broke.
Returns
- SensitiveContentEgressGuard.EgressOperation
The operation, which the caller tells it finished and then disposes.
Remarks
The operation is the payload a consumer is about to publish — one message's content, one page of a listing, one window of results — rather than each field of it. That is what a caller waits on, and what a percentile over individual values cannot say.
A deployment that scans nothing opens nothing, so an opt-in nobody took stays as free here as every other path through this guard.