Method ToAccountId
- Namespace
- MailFathom.Application.Jobs.Payloads
- Assembly
- MailFathom.Application.dll
ToAccountId()
Rebuilds the generated account identifier this payload names.
public MailAccountId ToAccountId()
Returns
- MailAccountId
The account's generated identifier.
Remarks
The identifier is a required property, so a document that carries none is refused by the deserializer before this is reached. What remains here is a value that is present and does not name an account, which this refuses for the reason every payload record refuses a component that no longer validates.
Exceptions
- ArgumentException
Thrown when the stored value no longer names a valid account.