Table of Contents

Method AmendAsync

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

AmendAsync(ContactId, ContactRecordDraft, CancellationToken)

Amends one contact to the record the caller states.

public Task<ContactWriteResult> AmendAsync(ContactId contactId, ContactRecordDraft draft, CancellationToken cancellationToken)

Parameters

contactId ContactId

The contact to amend.

draft ContactRecordDraft

The record the contact is to have afterwards.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<ContactWriteResult>

The amended record, or the refusal naming what stopped it.

Exceptions

ArgumentNullException

Thrown when draft is null.

PrincipalNotAuthorizedException

Thrown when the caller does not hold the writing grant.

ContactRecordInvalidException

Thrown when the record breaks a rule the book holds.