Class SensitiveContentScanBounds
- Namespace
- MailFathom.Application.SensitiveContent
- Assembly
- MailFathom.Application.dll
What one scan may spend, so a single large message cannot stall the pipeline behind it.
public sealed record SensitiveContentScanBounds : IEquatable<SensitiveContentScanBounds>
- Inheritance
-
SensitiveContentScanBounds
- Implements
- Inherited Members
Remarks
The three bounds answer three different ways a scan goes wrong. A message far larger than any mail body caps what is analyzed at all; a detector that stops answering caps what one call may wait; and a burst of concurrent work caps how many scans run at once, which matters most for the scanner that reaches a container over the network and would otherwise open a connection per caller.
Properties
- Default
Gets the bounds a deployment that states none receives.
- MaximumAnalyzedCharacters
Gets the greatest number of characters one scan analyzes.
- MaximumConcurrentScans
Gets how many scans may run at once across the process.
- ScanTimeout
Gets how long one call to one scanner may take before the operation it guards is refused.
Methods
- Create(int, TimeSpan, int)
Creates bounds, refusing values no scan could run under.
- ToString()
Returns a string that represents the current object.