Method Refused
- Namespace
- MailFathom.Application.Mail.Delivery.Authoring
- Assembly
- MailFathom.Application.dll
Refused(AuthoredResponseRefusalReason, long?)
Reports that no answer was authored, and why.
public static AuthoredResponse Refused(AuthoredResponseRefusalReason reason, long? bound = null)
Parameters
reasonAuthoredResponseRefusalReasonWhat stopped it.
boundlong?The number that was exceeded, when the reason is a bound.
Returns
- AuthoredResponse
A refused result.
Refused(RecipientResolutionRefusal)
Reports that a recipient the author added addressed nobody, in this result's own terms.
public static AuthoredResponse Refused(RecipientResolutionRefusal refusal)
Parameters
refusalRecipientResolutionRefusalWhy the recipient resolved to nobody.
Returns
- AuthoredResponse
A refused result.
Remarks
The reason is translated rather than carried, because an author of an answer acts on one refusal shape whatever part of the send produced it. The two identities stay the same on the other side of the translation: each reason maps to the code the resolution itself publishes.
Exceptions
- ArgumentNullException
Thrown when
refusalis null.- InvalidOperationException
Thrown when the resolution reason is not one this system declares, which a refusal built from a cast integer is.