Method Create
- 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
endpointUriThe analyzer's base address.
languagestringThe two-letter code of the language it is asked in.
minimumConfidencedoubleHow 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
endpointis null.- ArgumentException
Thrown when the address is not an absolute HTTP address, or the language is not a two-letter code.
- ArgumentOutOfRangeException
Thrown when
minimumConfidenceis not a number between 0 and 1 inclusive.