Table of Contents

Method AddPersonalDataContentScanning

Namespace
MailFathom.Infrastructure
Assembly
MailFathom.Infrastructure.dll

AddPersonalDataContentScanning(IServiceCollection)

Registers the detector of personal data in mail text, which reaches an analyzer deployed beside this service.

public static IServiceCollection AddPersonalDataContentScanning(this IServiceCollection services)

Parameters

services IServiceCollection

The service collection.

Returns

IServiceCollection

The service collection, for chaining.

Remarks

Called only where the Pii switch is on, which is what makes an opt-in nobody took cost nothing: with it off no client is registered, no analyzer address is read, and none of the three descriptors below exists. The composed PersonalDataAnalyzerProfile is the host's to register, because where the analyzer is comes from configuration this project does not bind.

The probe is registered beside the scanner rather than always, for the reason the catalog is: startup refuses a switch that is on with nothing behind it, and either one present without the other would turn that refusal into a scanner that runs and finds nothing.

Exceptions

ArgumentNullException

Thrown when services is null.