Class FailoverPolicy
- Namespace
- MailForge
- Assembly
- MailForge.dll
Controls when a FailoverEmailProvider stops trying the current provider and fails over to the next route in the chain.
public sealed class FailoverPolicy
- Inheritance
-
FailoverPolicy
- Inherited Members
Properties
AnyFailure
Fails over on any failure, including permanent exceptions and provider rejections. Prefer TransientOnly unless you have a strong reason to retry permanent failures through another provider.
public static FailoverPolicy AnyFailure { get; }
Property Value
FailOverOnPermanentFailure
True when a permanent failure or rejection should trigger failover.
public bool FailOverOnPermanentFailure { get; }
Property Value
TransientOnly
Fails over only on transient EmailException failures (timeouts, rate limits, temporary service errors). Permanent failures and rejected messages are surfaced to the caller as-is so they are not retried through other providers.
public static FailoverPolicy TransientOnly { get; }