Table of Contents

Method Create

Namespace
MailFathom.Infrastructure.SensitiveContent.PersonalData
Assembly
MailFathom.Infrastructure.dll

Create(Uri, string, double)

Composes the profile a configured analyzer is reached under.

public static PersonalDataAnalyzerProfile Create(Uri endpoint, string language, double minimumConfidence)

Parameters

endpoint Uri

The analyzer's base address.

language string

The two-letter code of the language it is asked in.

minimumConfidence double

How sure the analyzer must be before it reports a finding, from 0 to 1.

Returns

PersonalDataAnalyzerProfile

The validated profile.

Remarks

A relative address is refused rather than resolved against something, because there is nothing to resolve it against: a base address is what every call to the analyzer is composed from. A scheme other than HTTP is refused for the same reason a mistyped port would be — the request would never arrive, and startup is where that is worth finding out.

Exceptions

ArgumentNullException

Thrown when endpoint is null.

ArgumentException

Thrown when the address is not an absolute HTTP address, or the language is not a two-letter code.

ArgumentOutOfRangeException

Thrown when minimumConfidence is not a number between 0 and 1 inclusive.