Constructor SensitiveContentDerivationGuard
- Namespace
- MailFathom.Application.SensitiveContent.Derivation
- Assembly
- MailFathom.Application.dll
SensitiveContentDerivationGuard(SensitiveContentRedactor?, SensitiveContentDerivationStamp?, ISensitiveContentDerivationTelemetry, TimeProvider)
Initializes the derived-write guard of a deployment, whether or not it scans anything.
public SensitiveContentDerivationGuard(SensitiveContentRedactor? redactor, SensitiveContentDerivationStamp? stamp, ISensitiveContentDerivationTelemetry telemetry, TimeProvider timeProvider)
Parameters
redactorSensitiveContentRedactorThe one redaction every consumer shares, or null where both switches are off.
stampSensitiveContentDerivationStamp?The configuration derived rows are written under, present exactly when
redactoris.telemetryISensitiveContentDerivationTelemetryReports what each derived write found and what it cost.
timeProviderTimeProviderMeasures what the scan added to the derivation.
Exceptions
- ArgumentNullException
Thrown when
telemetryortimeProvideris null.- ArgumentException
Thrown when a stamp is supplied without a redactor, or a redactor without a stamp.