Method BeginGuardedOperation
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
BeginGuardedOperation(SensitiveContentEgressPoint, CancellationToken)
Opens the report of one guarded operation, which is what a caller actually waits on.
public ISensitiveContentGuardScope BeginGuardedOperation(SensitiveContentEgressPoint egressPoint, CancellationToken cancellationToken)
Parameters
egressPointSensitiveContentEgressPointWhere the texts this operation guards are going.
cancellationTokenCancellationTokenThe 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.