Table of Contents

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

redactor SensitiveContentRedactor

The one redaction every consumer shares, or null where both switches are off.

stamp SensitiveContentDerivationStamp?

The configuration derived rows are written under, present exactly when redactor is.

telemetry ISensitiveContentDerivationTelemetry

Reports what each derived write found and what it cost.

timeProvider TimeProvider

Measures what the scan added to the derivation.

Exceptions

ArgumentNullException

Thrown when telemetry or timeProvider is null.

ArgumentException

Thrown when a stamp is supplied without a redactor, or a redactor without a stamp.