Method Compute
- Namespace
- MailFathom.Application.SensitiveContent.Derivation
- Assembly
- MailFathom.Application.dll
Compute(SensitiveContentPlan, IEnumerable<ISensitiveContentScanner>)
Computes the stamp of a deployment with at least one scanner switched on.
public static SensitiveContentDerivationStamp Compute(SensitiveContentPlan plan, IEnumerable<ISensitiveContentScanner> scanners)
Parameters
planSensitiveContentPlanWhat this deployment scans for.
scannersIEnumerable<ISensitiveContentScanner>Every registered detector, of which the planned ones are read.
Returns
- SensitiveContentDerivationStamp
The stamp every derived row written under this configuration carries.
Remarks
Category and rule names are sorted before they are hashed, so two deployments that named the same categories in a different order in their configuration files write the same stamp. Scanners are already in plan order, which SensitiveContentPlan fixes for the same reason.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- SensitiveContentScannerUnavailableException
Thrown when the plan switches on a scanner nothing registered.