Constructor SensitiveContentEgressGuard
- Namespace
- MailFathom.Application.SensitiveContent.Egress
- Assembly
- MailFathom.Application.dll
SensitiveContentEgressGuard(SensitiveContentRedactor?, ISensitiveContentEgressTelemetry, TimeProvider)
Initializes the guard of a deployment, whether or not it scans anything.
public SensitiveContentEgressGuard(SensitiveContentRedactor? redactor, ISensitiveContentEgressTelemetry telemetry, TimeProvider timeProvider)
Parameters
redactorSensitiveContentRedactorThe one redaction every consumer shares, or null where both switches are off.
telemetryISensitiveContentEgressTelemetryReports what each guarded call found and what it cost.
timeProviderTimeProviderMeasures what the scan added to the operation being guarded.
Exceptions
- ArgumentNullException
Thrown when
telemetryortimeProvideris null.