Method Create
- Namespace
- MailFathom.Application.SensitiveContent.Egress
- Assembly
- MailFathom.Application.dll
Create(SensitiveContentPlan, IReadOnlyList<SensitiveContentScannerKind>)
Composes the policy of a deployment from its plan and the scanners it lets stop an act.
public static SensitiveContentScreeningPolicy Create(SensitiveContentPlan plan, IReadOnlyList<SensitiveContentScannerKind> screeningScanners)
Parameters
planSensitiveContentPlanWhat this deployment scans for.
screeningScannersIReadOnlyList<SensitiveContentScannerKind>The scanners whose findings stop a screened act, in any order and possibly none.
Returns
- SensitiveContentScreeningPolicy
The policy every screened act is judged by.
Remarks
A named scanner that is switched off contributes nothing rather than failing, for the reason the plan itself is composed that way: the switch decides whether a scanner runs at all, and a deployment that turned one off has said what it wants of every path that scanner would have reached.
Exceptions
- ArgumentNullException
Thrown when an argument is null.