Method IsNamedBy
- Namespace
- MailFathom.Application.Accounts
- Assembly
- MailFathom.Application.dll
IsNamedBy(MailAccountSelector)
Reports whether text a request carried names this account.
public bool IsNamedBy(MailAccountSelector selector)
Parameters
selectorMailAccountSelectorThe text naming an account.
Returns
Remarks
The identifier is matched ordinally because it is a generated key that everything else compares exactly, and the display name without regard to case because it is prose an operator wrote for a person to retype. Both are compared against the whole value: a display name is never matched as a fragment, so naming one account can never select another whose name contains it.
It answers about one account and says nothing about which set the account was drawn from. The identifier is unique across the deployment, so asking it of any set gives one answer; the display name is unique within the accounts assigned to one user, so a caller-facing resolution asks this only of the accounts the caller is assigned, and one that asked it of the deployment's would resolve the caller's word to whichever account came first.