Class ProviderDeliveryResult
The outcome of a single delivery attempt reported by an IEmailProvider. Providers report transient service failures by throwing EmailException with IsTransient set to true.
public sealed class ProviderDeliveryResult
- Inheritance
-
ProviderDeliveryResult
- Inherited Members
Constructors
ProviderDeliveryResult(bool, string?, string?)
Creates a result.
public ProviderDeliveryResult(bool succeeded, string? providerMessageId = null, string? details = null)
Parameters
Properties
Details
A human-readable description of the outcome.
public string? Details { get; }
Property Value
ProviderMessageId
A provider-specific message identifier (for example, a Resend or SES id).
public string? ProviderMessageId { get; }
Property Value
Succeeded
True when the provider accepted the message for delivery.
public bool Succeeded { get; }
Property Value
Methods
Failure(string)
A failed result.
public static ProviderDeliveryResult Failure(string details)
Parameters
detailsstring
Returns
Success(string?, string?)
A successful result without a provider message id.
public static ProviderDeliveryResult Success(string? providerMessageId = null, string? details = null)