Class EmailAuditRecord
A record of a single send attempt produced by the framework.
public sealed class EmailAuditRecord
- Inheritance
-
EmailAuditRecord
- Inherited Members
Constructors
EmailAuditRecord(string, string, EmailDeliveryStatus, string?, string?, int, DateTimeOffset, EmailMessage)
Creates an audit record.
public EmailAuditRecord(string messageId, string providerName, EmailDeliveryStatus status, string? providerMessageId, string? details, int attempt, DateTimeOffset completedAt, EmailMessage message)
Parameters
messageIdstringproviderNamestringstatusEmailDeliveryStatusproviderMessageIdstringdetailsstringattemptintcompletedAtDateTimeOffsetmessageEmailMessage
Properties
Attempt
The number of delivery attempts made.
public int Attempt { get; }
Property Value
CompletedAt
The time at which the attempt completed.
public DateTimeOffset CompletedAt { get; }
Property Value
Data
Custom fields written by audit middleware.
public IDictionary<string, object> Data { get; }
Property Value
Details
A description of the outcome.
public string? Details { get; }
Property Value
Message
The message that was sent.
public EmailMessage Message { get; }
Property Value
MessageId
The unique identifier of the message.
public string MessageId { get; }
Property Value
ProviderMessageId
The provider-specific message identifier, when available.
public string? ProviderMessageId { get; }
Property Value
ProviderName
The provider that handled the attempt.
public string ProviderName { get; }
Property Value
Status
The overall delivery status.
public EmailDeliveryStatus Status { get; }