Constructor MailBodyCleaning
- Namespace
- MailFathom.Application.EmailContent.Cleaning
- Assembly
- MailFathom.Application.dll
MailBodyCleaning(EmailContentReader, IMailBodyCleaner, MailboxScopeResolver, SensitiveContentEgressGuard, AccessAuthorization)
Initializes the pass over the read it cleans and the producer that proposes the cleaning.
public MailBodyCleaning(EmailContentReader content, IMailBodyCleaner cleaner, MailboxScopeResolver scopeResolver, SensitiveContentEgressGuard egressGuard, AccessAuthorization authorization)
Parameters
contentEmailContentReaderReads the message from the local copy, under the acting caller's own grant.
cleanerIMailBodyCleanerProposes which blocks to keep, or says why it proposed nothing.
scopeResolverMailboxScopeResolverAnswers whose mail this pass is reading, which is the posture the outline is scanned under.
egressGuardSensitiveContentEgressGuardNames that user for the whole flow, so every text of the outline is guarded under their own posture.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when an argument is null.