Table of Contents

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

dependency OutboundDependency

The dependency class the operation belonged to.

failure Exception

The failure the operation produced.

Returns

bool

true when the operation is worth repeating; otherwise false.

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 failure is null.

ArgumentOutOfRangeException

Thrown when dependency is not a defined member.