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
contactIdContactIdThe contact to amend.
draftContactRecordDraftThe record the contact is to have afterwards.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<ContactWriteResult>
The amended record, or the refusal naming what stopped it.
Exceptions
- ArgumentNullException
Thrown when
draftis null.- PrincipalNotAuthorizedException
Thrown when the caller does not hold the writing grant.
- ContactRecordInvalidException
Thrown when the record breaks a rule the book holds.