Table of Contents

Class ContactWriteResult

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

What one write to the contact book produced, and what the caller has to tell its owner.

public sealed record ContactWriteResult : IEquatable<ContactWriteResult>
Inheritance
ContactWriteResult
Implements
Inherited Members

Remarks

Every outcome carries the contact it is about where there is one, so a refusal is not merely a name: a writer refused by an origin is handed the record whose origin refused it, and can therefore say that promoting it is what unlocks the write.

Properties

AddressHolder

Gets one contact that already holds an address the write claimed, when that is what refused it.

Contact

Gets the contact the outcome is about, or null when the book held none.

Outcome

Gets how the write ended.

Methods

AddressHeldBy(ContactId)

Reports an address that already belongs to a different contact.

AlreadyAsserted(Contact)

Reports a promotion asked of a contact that is already asserted.

NotFound()

Reports that no contact of that identity is in the book.

OriginRefusesWriter(Contact)

Reports a write the contact's origin does not admit.

Written(Contact)

Reports the book holding what the caller asked for.