Method IsTransientFailure
- Namespace
- MailFathom.Application.Resilience
- Assembly
- MailFathom.Application.dll
IsTransientFailure(OutboundDependency, Exception)
Reports whether a failure is expected to clear on its own, so repeating the operation can succeed.
bool IsTransientFailure(OutboundDependency dependency, Exception failure)
Parameters
dependencyOutboundDependencyThe dependency class the operation belonged to.
failureExceptionThe failure the operation produced.
Returns
Remarks
A caller's own cancellation is never transient. Implementations answer from the failure's type and its protocol-level status alone, and never from personal data, credentials, or provider payloads.
Exceptions
- ArgumentNullException
Thrown when
failureis null.- ArgumentOutOfRangeException
Thrown when
dependencyis not a defined member.