Method NotRegistered
- Namespace
- MailFathom.Application.SensitiveContent.Detection
- Assembly
- MailFathom.Application.dll
NotRegistered(SensitiveContentScannerKind)
Refuses an operation whose scanner is switched on and absent from the running deployment.
public static SensitiveContentScannerUnavailableException NotRegistered(SensitiveContentScannerKind scanner)
Parameters
scannerSensitiveContentScannerKindThe scanner nothing registered.
Returns
- SensitiveContentScannerUnavailableException
The failure to raise.
Remarks
Startup already refuses this configuration, so reaching it means a scanner disappeared after the deployment started. Refusing here as well is what keeps the guarantee a property of the operation rather than of a check that ran once at boot.