Method Create
- Namespace
- MailFathom.Domain.Delivery
- Assembly
- MailFathom.Domain.dll
Create(string)
Restores a principal from the fingerprint a stored row holds.
public static OutgoingEmailPrincipal Create(string fingerprint)
Parameters
fingerprintstringThe stored value.
Returns
- OutgoingEmailPrincipal
The principal that row names.
Remarks
It validates rather than accepting whatever the column held, because the value's whole purpose is that two of them are equal or are not: a row carrying anything else would compare unequal to every caller and silently hide a send from the one who queued it, which is a fault to raise rather than a record to serve.
Exceptions
- ArgumentException
Thrown when
fingerprintis not a fingerprint this system writes.