Method Create
- Namespace
- MailFathom.Application.SensitiveContent
- Assembly
- MailFathom.Application.dll
Create(SensitiveContentScanBounds, IReadOnlyList<SensitiveContentScannerPlan>)
Composes the plan of a deployment with at least one scanner switched on.
public static SensitiveContentPlan Create(SensitiveContentScanBounds bounds, IReadOnlyList<SensitiveContentScannerPlan> scanners)
Parameters
boundsSensitiveContentScanBoundsWhat one scan may spend.
scannersIReadOnlyList<SensitiveContentScannerPlan>The plan of every switched-on scanner.
Returns
- SensitiveContentPlan
The validated plan.
Remarks
Scanners are ordered by SensitiveContentScannerKind rather than by the order they were configured or registered in, because that order decides which category names an overlapping redaction, and a placeholder that depended on registration order would not be reproducible.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- ArgumentException
Thrown when no scanner is switched on, or one is planned twice.