Table of Contents

Class EmailAuditRecord

Namespace
MailForge.Models
Assembly
MailForge.dll

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

messageId string
providerName string
status EmailDeliveryStatus
providerMessageId string
details string
attempt int
completedAt DateTimeOffset
message EmailMessage

Properties

Attempt

The number of delivery attempts made.

public int Attempt { get; }

Property Value

int

CompletedAt

The time at which the attempt completed.

public DateTimeOffset CompletedAt { get; }

Property Value

DateTimeOffset

Data

Custom fields written by audit middleware.

public IDictionary<string, object> Data { get; }

Property Value

IDictionary<string, object>

Details

A description of the outcome.

public string? Details { get; }

Property Value

string

Message

The message that was sent.

public EmailMessage Message { get; }

Property Value

EmailMessage

MessageId

The unique identifier of the message.

public string MessageId { get; }

Property Value

string

ProviderMessageId

The provider-specific message identifier, when available.

public string? ProviderMessageId { get; }

Property Value

string

ProviderName

The provider that handled the attempt.

public string ProviderName { get; }

Property Value

string

Status

The overall delivery status.

public EmailDeliveryStatus Status { get; }

Property Value

EmailDeliveryStatus