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
servicesIServiceCollectionThe service collection.
Returns
- IServiceCollection
The service collection, for chaining.
Remarks
Called only where the deployment stood an analyzer up, which is what keeps an opt-in nobody took from opening
anything: with no address configured no client is registered, and none of the three descriptors below exists.
It is the address rather than the Pii switch that gates this, because a user may switch that scanner on
for their own mail and no user's record is read while services are being registered — so what is registered is what the
deployment can provide, and which users meet it is their postures. 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, because it answers for a client this deployment only opens where an analyzer was configured: a probe without a scanner would report on an analyzer nothing reaches. Whether any user's mail is actually scanned with it is the readiness check's own first question. The catalog is neither here nor conditional, for the reason AddSensitiveContentCatalogs(IServiceCollection) gives.
Exceptions
- ArgumentNullException
Thrown when
servicesis null.